 
:root {
            --bg-color: #0f172a;
            --text-main: #f1f5f9;
            --text-muted: #94a3b8;
            --accent: #38bdf8;
            --nav-bg: rgba(15, 23, 42, 0.95);
            --border: rgba(255, 255, 255, 0.1);
            --card-bg: #1e293b;
            --input-bg: #0f172a;
            --login-bg: #1e293b; 
            --login-text: #f8fafc;
            --signup-bg: #f8fafc;
            --signup-text: #020617;
            --modal-overlay: rgba(0, 0, 0, 0.85);
            --success: #10b981;
            --sidebar-width: 280px;
        }

        [data-theme="light"] {
            --bg-color: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --accent: #0ea5e9;
            --nav-bg: rgba(255, 255, 255, 0.95);
            --border: rgba(0, 0, 0, 0.08);
            --card-bg: #ffffff;
            --input-bg: #ffffff;
            --login-bg: #e2e8f0; 
            --login-text: #475569;
            --signup-bg: #ffffff;
            --signup-text: #1e293b;
            --modal-overlay: rgba(0, 0, 0, 0.6);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
        body { background: var(--bg-color); color: var(--text-main); transition: 0.3s; min-height: 100vh; overflow-x: hidden; }

        /* Navbar Styles */
        .navbar {
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 8%; height: 75px; background: var(--nav-bg);
            border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000;
            backdrop-filter: blur(10px);
        }
        .logo { font-size: 1.4rem; font-weight: 800; text-decoration: none; color: var(--text-main); }
        .logo span { color: var(--accent); }
        .nav-links { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
        .nav-link { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
        
        .dropdown { position: relative; }
        .dropdown-menu {
            position: absolute; top: 100%; left: 0; background: var(--card-bg);
            border: 1px solid var(--border); list-style: none; min-width: 220px;
            display: none; border-radius: 8px; padding: 10px 0; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .dropdown:hover .dropdown-menu { display: block; }
        .dropdown-menu li a { padding: 10px 20px; display: block; text-decoration: none; color: var(--text-muted); font-size: 0.85rem; }

        .nav-right { display: flex; align-items: center; gap: 1rem; }
        .whatsapp-btn { background: #25d366; color: white; padding: 8px 18px; border-radius: 50px; text-decoration: none; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
        .hamburger { display: none; font-size: 1.4rem; cursor: pointer; color: var(--text-main); }


/* Sidebar Container */
.premium-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.premium-sidebar.active {
    left: 0;
}

/* Header & Theme Button */
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border);
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-theme-row-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-theme-row-btn i { color: #bf953f; }

/* Navigation Links */
.sidebar-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.sidebar-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.sidebar-nav-link i:not(.drop-arrow) {
    font-size: 1.1rem;
    color: #bf953f; /* Premium Gold Icon */
    width: 24px;
    text-align: right;
}

/* Dropdowns */
.icon-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drop-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.4s ease;
}

.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin: 0 10px 10px 10px;
}

.sidebar-dropdown-menu.show {
    max-height: 500px;
    padding: 8px 0;
}

.sub-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sub-link:hover {
    color: var(--accent);
    padding-left: 25px;
}

/* WhatsApp Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.sidebar-whatsapp-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-whatsapp-action:hover { transform: translateY(-2px); }

/* Overlay Styling */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.active { display: block; }



/* Ensure the theme button is visible and high-end */
.sidebar-theme-row-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin-top: 15px; /* Space from logo */
    background: var(--card-bg); /* Uses your card background color */
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important; /* Force display */
    visibility: visible !important;
}

.sidebar-theme-row-btn:hover {
    border-color: #bf953f;
    background: rgba(191, 149, 63, 0.1);
}

/* Unique solid styling specifically for the Courses button */
        .sidebar-nav-link.courses-special-btn {
            background-color: #1e293b !important; /* Rich, dark solid color to stand out */
            color: #38bdf8 !important;            /* Vibrant blue text color to pop */
            border-left: 4px solid #38bdf8 !important; /* Sleek accent strip on the left side */
            border-radius: 4px !important;
            margin: 6px 10px !important;          /* Clean spacing gap above and below */
            padding: 10px 12px !important;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; /* Lifts it off the background */
            transition: all 0.25s ease-in-out !important;
        }

        /* Changes the icon colors within the courses button */
        .sidebar-nav-link.courses-special-btn .link-label,
        .sidebar-nav-link.courses-special-btn i {
            color: #38bdf8 !important; 
        }

        /* Hover interaction for the courses action button */
        .sidebar-nav-link.courses-special-btn:hover {
            background-color: #0f172a !important; /* Deepens background on hover */
            color: #ffffff !important;            /* Changes text to clean white */
        }
        
        /* Ensures icons also change color on hover */
        .sidebar-nav-link.courses-special-btn:hover .link-label,
        .sidebar-nav-link.courses-special-btn:hover i {
            color: #ffffff !important;
        }
      /* Distinct solid styling for the header navbar Courses button */
        .nav-link.navbar-courses-btn {
            background-color: #1e293b !important;    /* Rich, dark solid color background */
            color: #38bdf8 !important;               /* Vibrant blue text color to pop */
            border-bottom: 3px solid #38bdf8 !important; /* Sleek accent underline indicator */
            border-radius: 4px !important;
            padding: 8px 16px !important;            /* Balanced horizontal spacing */
            margin: 0 4px !important;
            font-weight: 6px !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
            transition: all 0.25s ease-in-out !important;
        }

        /* Hover interaction for the navbar courses button */
        .nav-link.navbar-courses-btn:hover {
            background-color: #0f172a !important;    /* Deepens background context on hover */
            color: #ffffff !important;               /* Switches text color to solid white */
            border-bottom-color: #ffffff !important; /* Changes accent underline line to white */
        }

        /* Standard hidden drop menu states */
        .navbar-courses-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #1e293b;
            min-width: 200px;
            box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
            border-radius: 4px;
            padding: 6px 0;
            display: none;                          /* Hidden by default */
            z-index: 1000;
        }

        /* Links inside the dropdown box */
        .navbar-courses-dropdown a {
            color: #ffffff;
            padding: 10px 16px;
            text-decoration: none;
            display: block;
            font-size: 14px;
            transition: background-color 0.2s ease;
        }

        /* Hover action on item selection */
        .navbar-courses-dropdown a:hover {
            background-color: #0f172a;
            color: #38bdf8;
        }

        /* Hover behavior to reveal panel directly via CSS layout */
        .navbar-courses-container:hover .navbar-courses-dropdown {
            display: block;
        }
/* Icon specifically set to your gold accent */
#theme-icon {
    color: #bf953f !important;
    font-size: 1.1rem;
}

/* Fix for potential text-fill issues from logo styles */
#theme-text {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: var(--text-main);
}

/* Slide-out Button Container */
#support-slide-wrapper {
    position: fixed;
    right: 0;
    /* Changed from 50% to 75% to move it lower */
    top: 75%; 
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* The actual sliding button */
.side-pull-btn {
    display: flex;
    align-items: center;
    /* Updated to use your --accent root color */
    background-color: var(--accent); 
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 30px 0 0 30px;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    width: 50px;
    overflow: hidden;
    white-space: nowrap;
    /* Slightly softened shadow to match your UI */
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Text inside the button */
.support-label {
    margin-left: 15px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Icon styling */
#user-icon-fixed {
    font-size: 24px;
    min-width: 24px;
    text-align: center;
}

/* Hover Effect */
.side-pull-btn:hover {
    width: 220px;
    /* Slight brightness boost on hover instead of a hardcoded color */
    filter: brightness(1.1); 
}

.side-pull-btn:hover .support-label {
    opacity: 1;
}

@media (max-width: 1140px) {
    .hamburger {
        display: block !important; /* Shows the icon on mobile/tablet */
    }
    .nav-links, .nav-right .whatsapp-btn {
        display: none; /* Hides desktop nav so it doesn't overlap */
    }
}

        /* Footer Styles */
        .tf-elite-footer {
    --tf-bg: #030712; /* Premium Deep Black */
    --tf-accent: #38bdf8; /* Your Blue */
    --tf-text: #f8fafc;
    --tf-muted: #94a3b8;
    --tf-border: rgba(56, 189, 248, 0.1);

    background-color: var(--tf-bg);
    color: var(--tf-text);
    position: relative;
    padding: 100px 0 0 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border-top: 2px solid var(--tf-accent);
}

/* 3D BACKGROUND GRID */
.tf-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--tf-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--tf-border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.4;
    animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.tf-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 90px;
    position: relative;
    z-index: 10;
}

/* MAIN LAYOUT */
.tf-main-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    gap: 80px;
    padding-bottom: 80px;
}

/* HEADINGS & LABELS */
.tf-label {
    color: var(--tf-accent);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 40px; /* High-end spacing */
    position: relative;
    display: inline-block;
}

.tf-label::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--tf-accent);
}

/* LOGO & BRAND */
.tf-logo { font-size: 1.8rem; font-weight: 900; margin-bottom: 30px; }
.tf-logo span { color: var(--tf-accent); }
.tf-summary { color: var(--tf-muted); line-height: 1.8; margin-bottom: 35px; font-size: 0.95rem; }

/* SOCIAL CIRCLES */
.tf-social-row { display: flex; gap: 15px; }
.tf-social-circle {
    width: 38px; height: 38px;
    border: 1px solid var(--tf-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--tf-text);
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.02);
}
.tf-social-circle:hover { background: var(--tf-accent); color: var(--tf-bg); transform: translateY(-5px); border-color: var(--tf-accent); }

/* NAVIGATION ITEMS */
.tf-nav { display: flex; flex-direction: column; gap: 18px; }
.tf-nav-item {
    color: var(--tf-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}
.tf-nav-item:hover { color: var(--tf-accent); transform: translateX(8px); }

/* SUBSCRIPTION BOX */
.tf-update-text { color: var(--tf-muted); margin-bottom: 25px; font-size: 0.9rem; line-height: 1.6; }
.tf-subscribe-box {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 35px;
}
.tf-input {
    border: none; padding: 15px 20px; flex: 1; outline: none; font-size: 0.9rem;
}
.tf-join-btn {
    background: #ffcc00; /* Match TenzSoft Gold */
    color: #000; border: none; padding: 0 25px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; gap: 10px;
}
.tf-join-btn:hover { background: #e6b800; }

/* CONTACT DETAILS */
.tf-contact-details { display: flex; flex-direction: column; gap: 20px; }
.tf-contact-item { display: flex; align-items: center; gap: 15px; color: var(--tf-muted); font-size: 0.9rem; }
.tf-icon-box { color: var(--tf-accent); font-size: 1.1rem; }

/* TERMINAL BAR */
.tf-terminal-footer {
    border-top: 1px solid var(--tf-border);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.75rem;
    color: #475569;
}
.tf-pulse {
    height: 8px; width: 8px; background: #10b981; border-radius: 50%;
    display: inline-block; margin-right: 8px; box-shadow: 0 0 10px #10b981;
}

/* RESPONSIVE */
@media (max-width: 1024px) { .tf-main-layout { grid-template-columns: 1fr 1fr; gap: 50px; } }
@media (max-width: 600px) { .tf-main-layout { grid-template-columns: 1fr; } }

/* Remove default underlines and style footer links */
.tf-elite-footer a {
    text-decoration: none !important; /* Removes the underline */
    color: inherit;                  /* Keeps the text color consistent with your design */
    display: flex;                   /* Ensures the icon and text stay aligned */
    transition: all 0.3s ease;       /* Smooth transition for hover effects */
}

/* Ensure clicked links don't turn purple */
.tf-elite-footer a:visited {
    color: inherit;
}

/* Optional: Add a subtle hover effect since the underline is gone */
.tf-elite-footer a:hover {
    color: var(--tf-accent);         /* Changes color to your sky blue on hover */
    text-decoration: none;           /* Ensures underline stays off during hover */
}

/* Specific fix for the contact items to keep icon and text on one line */
.tf-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
}


/* Base navigation item style */
.tf-nav-item {
    display: flex;
    align-items: center;
    text-decoration: none !important; /* No underline */
    color: var(--tf-muted); /* Your muted gray color */
    transition: all 0.3s ease;
    position: relative;
}

/* The Arrow Styling */
.tf-hover-arrow {
    color: #38bdf8; /* Your specific blue color */
    font-size: 0.7rem;
    margin-right: 0; /* Hidden by default */
    opacity: 0;      /* Invisible by default */
    width: 0;        /* Takes no space until hover */
    transition: all 0.3s ease;
}

/* Hover Effect: Show arrow and push text forward */
.tf-nav-item:hover {
    color: #f8fafc; /* White text on hover */
    padding-left: 5px;
}

.tf-nav-item:hover .tf-hover-arrow {
    opacity: 1;
    margin-right: 10px;
    width: 12px; /* Smoothly grows and appears */
}



.tf-social-circle:hover i {
    color: #000000;
}
/* Footer Background Styling */
.tf-footer {
    background-color: #000000;
    padding: 40px 20px;
    text-align: center;
}

.tf-logo-wrapper {
    display: inline-block;
    margin-bottom: 20px;
}

/* Image Dimensions and Fixes */
.tf-footer-logo-img {
    /* Increased size */
    height: 180px; 
    width: auto; /* Maintains natural aspect ratio */
    
    /* Rounded corners */
    border-radius: 15px; 
    
    /* Ensures the image stays clean within its box */
    object-fit: cover; 
    
    /* Centering logic */
    display: block;
    margin: 0 auto;
    
    /* Optional: subtle border to define the shape on dark backgrounds */
    border: 1px solid #333; 
}

/* Hover effect for the link */
.tf-logo-wrapper a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tf-logo-wrapper a:hover {
    opacity: 0.9;
    transform: scale(1.02); /* Slight zoom effect on hover */
}
/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet View: 2 Sections per row */
@media (max-width: 950px) {
    .tf-main-layout {
        /* Switch to a 2x2 grid */
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding-bottom: 50px;
    }

    /* Keep the Logo and Brand column centered at the top */
    .brand-info {
        grid-column: span 2; /* Spans across both columns */
        text-align: center;
        margin-bottom: 20px;
    }

    /* Aligning the logo image and social icons to center */
    .tf-logo-wrapper, 
    .tf-social-row {
        justify-content: center;
        display: flex;
    }

    .tf-footer-logo-img {
        margin: 0 auto;
    }

    /* Ensuring the summary text stays centered */
    .tf-summary {
        max-width: 600px;
        margin: 0 auto 35px;
    }
}

/* Mobile View: 1 Section per row */
@media (max-width: 600px) {
    .tf-container {
        padding: 0 25px; /* Tighter side padding for small screens */
    }

    .tf-main-layout {
        /* Everything stacks in 1 column */
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center; /* Centers all headings and text */
    }

    .brand-info {
        grid-column: span 1;
    }

    /* Aligning Navigation items and arrows to center */
    .tf-nav-item {
        justify-content: center;
    }

    .tf-nav-item:hover {
        transform: none; /* Disables horizontal shift on mobile for better UX */
    }

    /* Centering the Subscribe Box and Buttons */
    .tf-subscribe-box {
        max-width: 100%;
    }

    .tf-contact-item {
        justify-content: center;
    }

    /* Terminal Bar Stacking */
    .tf-terminal-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* --- EXTRA SMALL SCREENS (Below 420px) --- */
@media (max-width: 420px) {
    .tf-container {
        padding: 0 15px;
    }

    .tf-main-layout {
        gap: 35px; /* Tighter spacing for smaller height */
    }

    .tf-footer-logo-img {
        max-width: 220px; /* Smaller logo */
    }

    .tf-label {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .tf-nav-item {
        font-size: 0.85rem;
    }

    .tf-contact-item span {
        font-size: 0.8rem; /* Prevents long emails from breaking the layout */
    }

    .tf-terminal-footer {
        font-size: 0.65rem; /* Very small terminal text */
        letter-spacing: 0.5px;
    }
}

/* --- ULTRA NARROW SCREENS (Below 250px) --- */
@media (max-width: 250px) {
    .tf-container {
        padding: 0 10px;
    }

    /* Stack the subscribe button on top of the input */
    .tf-subscribe-box {
        flex-direction: column;
        border: none;
        background: transparent;
    }

    .tf-input {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 10px;
    }

    .tf-join-btn {
        width: 100%;
        border-radius: 8px;
        padding: 10px;
    }

    /* Hide non-essential decorative elements to save space */
    .tf-grid-overlay, 
    .tf-ambient-glow {
        display: none;
    }

    .tf-summary {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* Make icons smaller to fit the row */
    .tf-social-circle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .tf-copyright {
        font-size: 0.6rem;
    }
}
/* Engineering Ecosystem Hero - Explicitly Locked to Dark Theme Layout */
.tf-tech-hero {
    position: relative;
    width: 100%;
    min-height: 75vh;
    background-color: #0f172a; /* Hardcoded dark bg variable */
    display: flex;
    align-items: center;
    padding: 100px var(--hero-side-gap, 8%);
    overflow: hidden;
    box-sizing: border-box;
}

.tf-tech-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left, transparent 30%, #0f172a 95%);
    pointer-events: none;
    z-index: 2;
}

.tf-tech-hero-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.tf-tech-hero-container {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    z-index: 5;
}

/* Left Panel Content */
.tf-tech-hero-left {
    text-align: left;
}

.tf-tech-hero-badge {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8; /* Brand accent blue */
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.tf-tech-hero-title {
    color: #f1f5f9; /* Text main dark */
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.tf-tech-accent {
    color: #38bdf8;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.tf-tech-hero-description {
    color: #94a3b8; /* Text muted dark */
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    margin-bottom: 35px;
    max-width: 650px;
}

/* CTAs Buttons mechanics */
.tf-tech-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tf-tech-btn-primary {
    background-color: #38bdf8;
    color: #0f172a;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tf-tech-btn-primary:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
}

.tf-tech-btn-secondary {
    background-color: #1e293b;
    color: #f1f5f9;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tf-tech-btn-secondary:hover {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Right Panel System Console Screen */
.tf-tech-hero-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.tf-console-box {
    width: 100%;
    max-width: 500px;
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.tf-console-header {
    background-color: #131b2e;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tf-console-dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.tf-console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
}
.tf-console-dots span:nth-child(2) { background-color: #eab308; }
.tf-console-dots span:nth-child(3) { background-color: #22c55e; }

.tf-console-title {
    color: #64748b;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

.tf-console-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Color definitions for the simulated console log strings */
.tf-console-line { color: #e2e8f0; }
.tf-c-blue { color: #38bdf8; }
.tf-c-muted { color: #475569; }
.tf-c-green { color: #10b981; }

.tf-c-cursor {
    color: #38bdf8;
    animation: terminalBlink 1s step-end infinite;
}

@keyframes terminalBlink {
    50% { opacity: 0; }
}

/* Adaptive Breakpoints Layout adjustment */
@media (max-width: 992px) {
    .tf-tech-hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .tf-tech-hero-left { text-align: center; }
    .tf-tech-hero-description { margin: 0 auto 35px auto; }
    .tf-tech-hero-cta { justify-content: center; }
    .tf-tech-hero-right { justify-content: center; order: -1; }
    .tf-console-box { max-width: 450px; }
}

@media (max-width: 480px) {
    .tf-tech-hero { padding-left: 20px; padding-right: 20px; }
    .tf-tech-hero-cta { flex-direction: column; width: 100%; }
    .tf-tech-btn-primary, .tf-tech-btn-secondary { width: 100%; text-align: center; }
}
/* Premium Tech Stack Component - Fully Theme Toggle Reactive */
.tf-prime-matrix-section {
    background-color: var(--bg-color);
    padding: 100px var(--hero-side-gap, 0%);
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    border-top: 1px solid var(--border);
    position: relative;
}

.tf-prime-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Header Aesthetics */
.tf-prime-header {
    text-align: left;
    margin-bottom: 70px;
    max-width: 700px;
}

.tf-prime-index {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.tf-prime-title {
    color: var(--text-main);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.tf-prime-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Premium Interactive 3-Column Grid Layout */
.tf-prime-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* Master Premium Card System Layout */
.tf-prime-card {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Outer Container Hover Effects Matrix */
.tf-prime-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Micro-lighting glow overlay that responds on mouse focus */
.tf-prime-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tf-prime-card:hover .tf-prime-card-glow {
    opacity: 1;
}

/* Inner Frame Spacing block */
.tf-prime-card-inner {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Top Meta Row Layer layout styles */
.tf-prime-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tf-prime-num {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.tf-prime-category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    background-color: rgba(56, 189, 248, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.tf-prime-layer-title {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.tf-prime-layer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 35px 0;
    transition: color 0.3s ease;
}

/* Clean Tech Stack List Array Assembly */
.tf-prime-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: auto; /* Aligns all list blocks evenly to the bottom element */
}

.tf-prime-tech-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

/* Custom Vector/Symbol markers replacing bulky icons */
.tf-tech-marker {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: monospace;
    width: 24px;
    display: flex;
    justify-content: center;
    line-height: 1;
    margin-top: 2px;
}

.tf-tech-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tf-tech-text strong {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tf-tech-text span {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Micro interaction slide effect on individual items when card gets hovered */
.tf-prime-card:hover .tf-prime-tech-list li {
    transform: translateX(4px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tf-prime-card:hover .tf-prime-tech-list li:nth-child(2) { transition-delay: 0.05s; }
.tf-prime-card:hover .tf-prime-tech-list li:nth-child(3) { transition-delay: 0.1s; }

/* Structural Breakpoint adjustments */
@media (max-width: 768px) {
    .tf-prime-matrix-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    .tf-prime-card-inner {
        padding: 30px;
    }
}
/* Minimalist High-End Horizontal Flow Framework */
.tf-clean-flow-section {
    background-color: var(--bg-color);
    padding: 90px var(--hero-side-gap, 0%);
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    border-top: 1px solid var(--border);
}

.tf-clean-flow-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Stripped-back Header */
.tf-clean-flow-header {
    margin-bottom: 50px;
    text-align: left;
}

.tf-flow-micro-tag {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 8px;
}

.tf-flow-main-title {
    color: var(--text-main);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    transition: color 0.3s ease;
}

/* 4-Column Flat Grid Layout */
.tf-clean-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Individual Clean Process Cards */
.tf-clean-step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

/* Header Elements Inside Card */
.tf-step-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tf-step-number-id {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
}

.tf-step-status-tag {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--bg-color);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tf-step-core-title {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.tf-step-core-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Pure Center-Expanding Line Animation Layer */
.tf-step-interactive-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Interactive Card Hover Behaviors */
.tf-clean-step-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tf-clean-step-card:hover .tf-step-interactive-line {
    width: 100%;
    left: 0;
}

/* Mobile Screen Stack Shifts */
@media (max-width: 480px) {
    .tf-clean-flow-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .tf-clean-step-card {
        padding: 24px;
    }
}
/* Core Root Variables for Global Control */
:root {
    /* ADJUST THIS VARIABLE TO MODIFY THE SIDE GAPS FOR THE WHOLE PAGE INSTANTLY */
    --site-side-gap: 0%; 
}

/* Kinetic Grid Section Frame Layout */
.tf-kinetic-faq-section {
    background-color: var(--bg-color);
    padding: 110px var(--site-side-gap);
    transition: background-color 0.3s ease, padding 0.3s ease;
    box-sizing: border-box;
    border-top: 1px solid var(--border);
}

.tf-faq-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

/* Structural Header Configuration */
.tf-faq-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 700px;
}

.tf-faq-tag {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.tf-faq-title {
    color: var(--text-main);
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 12px 0 18px 0;
    line-height: 1.1;
}

.tf-faq-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Alternating Dual-Column Matrix Grid */
.tf-faq-grid-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

/* High-End Industrial Structural Cards */
.tf-kinetic-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tf-kinetic-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

/* Unstyled Flat Trigger Framework */
.tf-kinetic-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 24px;
    outline: none;
    text-align: left;
    box-sizing: border-box;
}

.tf-kinetic-title-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tf-kinetic-id {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 2px;
}

.tf-kinetic-question {
    color: var(--text-main);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.45;
    transition: color 0.3s ease;
}

/* Kinetic Twist Cross-Vector Box */
.tf-kinetic-icon-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tf-k-line {
    position: absolute;
    background-color: var(--text-muted);
    transition: background-color 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-h {
    width: 100%;
    height: 2px;
    top: 8px;
    left: 0;
}

.line-v {
    width: 2px;
    height: 100%;
    left: 8px;
    top: 0;
}

/* Hardware Accelerated Height Panel Mask */
.tf-kinetic-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tf-kinetic-inner-content {
    padding: 0 30px 35px 54px; /* Offset to line up clean under text */
    box-sizing: border-box;
}

.tf-kinetic-answer {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Active Class Dynamic Transformations */
.tf-kinetic-item.faq-active {
    border-color: var(--accent);
    background-color: var(--bg-color); /* Subtle contrast shift when open */
}

.tf-kinetic-item.faq-active .tf-kinetic-question {
    color: var(--accent);
}

.tf-kinetic-item.faq-active .tf-kinetic-icon-wrapper {
    transform: rotate(180deg);
}

.tf-kinetic-item.faq-active .line-v {
    transform: rotate(90deg);
    opacity: 0; /* Vanishes vertical axis line to leave a clean singular dash */
}

.tf-kinetic-item.faq-active .tf-k-line {
    background-color: var(--accent);
}

/* Multi-View Responsive Optimization System */
@media (max-width: 992px) {
    .tf-faq-grid-matrix {
        grid-template-columns: 1fr; /* Drop to vertical stacked grid on tablets */
        gap: 18px;
    }
}

@media (max-width: 560px) {
    /* Adjust gaps to prevent screen pinching on mobile */
    .tf-kinetic-faq-section {
        padding: 80px 16px; 
    }
    .tf-kinetic-trigger {
        padding: 24px;
    }
    .tf-kinetic-inner-content {
        padding: 0 24px 24px 24px;
    }
    .tf-kinetic-title-wrap {
        gap: 8px;
    }
}

/* --- NAVBAR BUTTONS LOGIC --- */
/* At 690px and below, hide the anchor buttons in the navbar */
@media screen and (max-width: 690px) {
    .nav-right a {
        display: none !important;
    }
    
    /* Ensure the theme toggle button stays visible */
    .nav-right #theme-toggle {
        display: block !important;
    }
}

/* --- SIDEBAR BUTTONS LOGIC --- */
/* 1. Hide sidebar buttons on large screens (above 1001px) */
@media screen and (min-width: 1002px) {
    .sidebar-footer {
        display: none !important;
    }
}

/* 2. Show sidebar buttons on screens 1001px and below */
@media screen and (max-width: 1001px) {
    .sidebar-footer {
        display: block !important; /* Shows the footer container */
    }
    
    .sidebar-footer > div {
        display: flex !important; /* Ensures the buttons inside stay inline */
    }
}
/* Media Query for Screen Widths 1000px and Below */
@media (max-width: 1000px) {
    /* 1. Force the main container into a single column grid stack */
    .tf-tech-hero-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px; /* Space between the content and the console image */
        padding-left: var(--site-side-gap);
        padding-right: var(--site-side-gap);
    }

    /* 2. Explicitly order the content area to display first */
    .tf-tech-hero-left {
        order: 1;
        text-align: left; /* Keeps text neat, or change to center if desired */
    }

    /* 3. Explicitly order the console image container to display second */
    .tf-tech-hero-right {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center; /* Center balances the box when full width */
    }

    /* 4. Ensure internal console structures expand smoothly to fit mobile viewports */
    .tf-console-box {
        width: 100%;
        max-width: 100%;
    }
}
