/* Fonts */
body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    overflow-x: hidden;
    color: #e2e8f0; /* Slate 200 */
    background-color: #0f172a; /* Slate 900 */
    box-sizing: border-box;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6, .tm-sitename, .tm-content-title {
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    font-weight: 600;
}

a { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    text-decoration: none;
    color: #38bdf8; /* Sky 400 */
}

a:hover { 
    text-decoration: none; 
    color: #0ea5e9; /* Sky 500 */
}

ul { padding: 0; }
button:focus { outline: none; }
p { line-height: 1.8; font-weight: 400; color: #cbd5e1; /* Slate 300 */ }
.tm-logo { margin-right: 20px; }

/* Header Styling */
.tm-site-header {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.tm-site-header:hover {
    transform: translateY(-2px);
}

.tm-sitename { 
    font-size: 3rem; 
    font-weight: 700;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}
.tm-sitename sup {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
    -webkit-text-fill-color: initial;
    margin-left: 8px;
    letter-spacing: 0;
}

.tm-slogon { 
    font-size: 1.1rem; 
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #94a3b8;
    margin-bottom: 0;
}

/* Navigation */
.navbar-toggler {
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background-color: rgba(15, 23, 42, 0.7);
    color: white;    
    transition: all 0.3s ease;
}
.navbar-toggler:hover {
    background-color: rgba(56, 189, 248, 0.2);
}

.navbar-expand-lg {
    padding-left: 0;
    padding-right: 0;
}
.navbar-expand-lg .navbar-nav .nav-link { padding: 0; }

.navbar-expand-lg .navbar-nav .tm-nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #cbd5e1;    
    padding-bottom: 25px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-expand-lg .navbar-nav .tm-nav-link::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-item { margin-right: 50px; }
.nav-item:last-child { margin-right: 0; }

.nav-item.active .tm-nav-link,
.nav-item:hover .tm-nav-link {
    color: #f8fafc;
}

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

/* Page Background Overlays */
.tm-bg {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1000;
}

.tm-bg-left,
.tm-bg-right {
    position: relative;
    width: 50%;
    height: 100%;
}

.tm-bg-right { 
    background-color: rgba(15, 23, 42, 0.65); 
    backdrop-filter: blur(8px);
}

.tm-bg-left {
    border-right: 230px solid rgba(15, 23, 42, 0.65);
    border-top: 100vh solid transparent;
}

/* Background Controls */
.tm-bg-controls-wrapper {
    display: inline-flex;
    margin-left: -150px;
    gap: 12px;
    background: rgba(15, 23, 42, 0.4);
    padding: 10px 15px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.05);
}

.tm-bg-control {
    display: inline-block;
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tm-bg-control.active,
.tm-bg-control:hover {
    background-color: #38bdf8;
    width: 40px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Layout Blocks */
.tm-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  
}

.tm-row { display: flex; }

.tm-col-left {
    width: 50%;
    height: 100%;
    padding-left: 60px;  
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tm-col-right {
    width: 50%;
    height: 100%;
    padding-left: 70px;
    padding-right: 70px;
}

/* Main Content Box */
.tm-content {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 720px;
    margin-top: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 50px;
}

.tm-about { max-width: 600px; }

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #334155;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #475569;
}

/* Components */
.tm-content-title { 
    font-size: 2rem; 
    margin-bottom: 1.5rem;
    color: #f8fafc;
}
.tm-content-title a { color: #f8fafc; }
.tm-content-title a:hover { color: #38bdf8; }

hr { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin: 2rem 0;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #38bdf8;
    color: #0f172a;
    border: transparent;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background-color: #7dd3fc;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.tm-site-footer {
    padding: 40px 0 30px;
    max-width: 660px;
    font-size: 0.95rem;
    color: #64748b;
}

.tm-col-footer { padding-left: 0; }

/* Forms */
.form-control,
textarea {    
    color: #f8fafc;
    background-color: rgba(255,255,255,0.05);
    background-clip: padding-box;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 15px 20px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-control:focus {
    color: #f8fafc;
    background-color: rgba(255,255,255,0.1);    
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    outline: none;
}

/* center-me (Article Title logic) */
.center-me {
    width: 60%;
    padding: 0 4rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.center-me b {
    font-size: 1.1rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.center-me h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.article-pages {
    font-family: 'Inter', serif; /* Keep content very readable */
}
.article-pages b {
    color: #94a3b8;
    font-weight: 500;
}
/* Article List */
.article-list {
    list-style-type: disc;
    padding-left: 1.8rem;
    margin-bottom: 2rem;
}

.article-list li::marker {
    color: #38bdf8;
}

.article-link {
    color: #f8fafc;
    transition: color 0.3s ease;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.article-link:hover {
    color: #38bdf8;
    text-decoration-color: #38bdf8;
}

/* Images & Media */
.tm-col-left img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.tm-col-left img:hover {
    transform: scale(1.02);
}

.fb-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .nav-item { margin-right: 30px; }
}

@media (max-width: 992px) {    
    .tm-nav {
        position: absolute;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        color: white;
        top: 60px;
        right: 0px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.1);
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        min-width: 200px;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link {
        font-size: 1.2rem;
        padding: 10px 15px;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link::after {
        bottom: 8px;
    }

    .nav-item { margin-right: 0; margin-bottom: 10px; }

    .tm-col-left { width: 45%; padding-left: 40px; }

    .tm-col-right {
        width: 55%;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .tm-row { flex-direction: column; }
    
    .center-me {
        padding: 4rem 2rem;
        justify-content: flex-end;
        height: auto;
        width: 100%;
        margin-top: 100px;
    }
    
    .center-me h2 { font-size: 2.5rem; }

    .tm-col-left,
    .tm-col-right,
    .tm-bg-left,
    .tm-bg-right {
        width: 100%;
    }

    #tm-main-nav {
        position: relative;
        padding-bottom: 0;
        display: flex;
        justify-content: flex-end;
    }  

    .tm-nav {
        top: 45px;
        right: 0;
        z-index: 100;
    }
    
    .tm-bg { flex-direction: column; }

    .tm-bg-left {
        height: 250px;        
        border-bottom: 50px solid rgba(15, 23, 42, 0.65);
        border-right: 0;
        border-top: 0;
    }

    .tm-bg-right { height: calc(100% - 250px); }

    .tm-bg-controls-wrapper {
        margin-left: 0;
        margin-top: 30px;
        justify-content: center;
        width: fit-content;
        margin: 30px auto;
    }

    .tm-content {
        margin-top: 20px;
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .tm-col-right {
        padding-top: 0px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .tm-col-left {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 20px;
    }

    .tm-site-header {
        margin-top: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .tm-sitename { font-size: 2.2rem; }

    .tm-site-footer { text-align: center !important; }
}

@media (max-width: 480px) {
    .tm-sitename { font-size: 1.8rem; }
    .tm-slogon { font-size: 0.8rem; }
    .center-me h2 { font-size: 2rem; }
}