
        :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;
}





/* Animated Gradient Border Container */
.search-box-container {
    position: relative;
    max-width: 900px;
    margin: 100px auto;
    padding: 3px; /* Space for the border */
    border-radius: 100px;
    background: linear-gradient(90deg, var(--accent), #ff00c1, var(--accent));
    background-size: 200% auto;
    animation: border-glow 3s linear infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes border-glow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.search-inner {
    background: var(--bg-color);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 10px 30px;
    position: relative;
}

.search-inner input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    padding: 15px;
    font-size: 1.3rem;
    font-weight: 500;
}

.search-inner i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Intelligent Results Dropdown */
.fuzzy-results {
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    display: none;
    z-index: 999;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.result-row {
    padding: 20px 35px;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-row:hover {
    background: rgba(56, 189, 248, 0.1);
    padding-left: 45px;
}

.result-row strong { color: var(--text-main); font-size: 1.1rem; }
.result-row span { color: var(--accent); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-box-container { width: 95%; margin: 50px auto; }
}



/* Your Existing Root Variables */

        /* 2 Cards Per Row Grid */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            max-width: 1300px;
            margin: 0 auto;
        }

        /* Premium Glassmorphism Card */
        .service-card {
            background: var(--card-bg);
            backdrop-filter: var(--glass);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 30px;
            height: 600px;
            display: flex;
            flex-direction: column;
            transition: 0.4s ease;
        }

        .service-card:hover {
            border-color: var(--accent);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        /* Split Header: Title Left, Price Right */
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px solid var(--border);
            padding-bottom: 20px;
        }

        .title-area h2 { margin: 0; font-size: 1.6rem; letter-spacing: -0.5px; }
        .title-area span { color: var(--text-muted); font-size: 0.8rem; }

        .price-area { text-align: right; }
        .price-tag { color: var(--accent); font-size: 1.8rem; font-weight: 900; display: block; }

        .btn-adjust {
            background: rgba(56, 189, 248, 0.1);
            color: var(--accent);
            border: 1px solid var(--accent);
            padding: 6px 15px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 800;
            cursor: pointer;
            margin-top: 8px;
            transition: 0.3s;
        }

        .btn-adjust:hover {
            background: var(--accent);
            color: #000;
        }

        /* Features Label Over the Section */
        .section-label {
            font-size: 0.65rem;
            font-weight: 900;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-top: 25px;
            display: block;
        }

        /* Scrollable Container */
        .scroll-box {
            flex-grow: 1;
            overflow-y: auto;
            margin-top: 15px;
            padding-right: 10px;
        }

        .scroll-box::-webkit-scrollbar { width: 3px; }
        .scroll-box::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

        .feat-row {
            display: flex;
            gap: 15px;
            margin-bottom: 12px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 16px;
            border: 1px solid transparent;
        }

        .feat-unlocked {
            border-color: rgba(56, 189, 248, 0.2);
            background: linear-gradient(90deg, rgba(56, 189, 248, 0.05), transparent);
        }

        .feat-num { color: var(--accent); font-weight: 900; font-size: 0.8rem; }
        .feat-info h4 { margin: 0; font-size: 0.9rem; color: #fff; }
        .feat-info p { margin: 4px 0 0; font-size: 0.75rem; color: var(--text-muted); }

        /* Submit Button */
        .card-footer {
            padding-top: 20px;
            border-top: 1px solid var(--border);
        }

        .btn-submit {
            width: 100%;
            background: linear-gradient(90deg, var(--accent), #2dd4bf);
            color: #000;
            border: none;
            padding: 16px;
            border-radius: 14px;
            font-weight: 900;
            text-transform: uppercase;
            cursor: pointer;
            transition: 0.3s;
        }

        .btn-submit:hover {
            filter: brightness(1.1);
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
        }

        /* Modal / Popup */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.92);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            backdrop-filter: blur(20px);
        }

        .modal-content {
            background: #0a0a0a;
            padding: 40px;
            border-radius: 32px;
            border: 1px solid var(--accent);
            width: 450px;
            text-align: center;
        }

        #budgetRange {
            width: 100%;
            margin: 30px 0;
            accent-color: var(--accent);
        }



/* Hero Container - Left Aligned */
.hero-wrapper {
    display: flex;
    align-items: flex-start; /* Aligns items to the top/left */
    justify-content: space-between;
    min-height: 85vh;
    padding: 2rem 7%;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-color);
}

/* Left Content - Aligned to corner */
.hero-content {
    flex: 1;
    text-align: left;
    padding-top: 2rem; /* Spacing from where your logo would be */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    margin: 0.5rem 0 1.5rem 0;
    font-weight: 800;
    color: var(--text-main);
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

/* Main Feature Box (370x370) */
.main-feature-box {
    width: 370px;
    height: 370px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 2rem;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: floating 4s ease-in-out infinite;
    box-sizing: border-box;
}

/* Small Service Boxes Inside */
.inner-service-box {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Special shadow for "Clean Code" box as requested */
.inner-service-box.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.inner-service-box:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.inner-service-box i, .inner-service-box svg {
    color: var(--accent);
    animation: pulse 2s infinite;
}

.inner-service-box span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Button with Arrow */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.cta-btn:hover {
    filter: brightness(1.1);
    gap: 15px;
}

/* Animations */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-content p { margin: 0 auto 2rem; }
}

/* Service Info Section Layout */
.info-section {
    display: flex;
    align-items: stretch; /* Forces children to have equal height */
    justify-content: space-between;
    padding: 6rem 1%;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-color);
}

/* Left Side: Image Container */
.info-visual-left {
    flex: 1;
    position: relative;
    display: flex;
}

.image-inner-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Matches the height of the right-side text box */
    display: flex;
}

/* Blue Flare Glow behind image */
.image-inner-wrapper::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    background: var(--accent);
    filter: blur(70px);
    opacity: 0.3;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-visual-left img {
    width: 100%;
    height: 100%; /* Fills the height of the container */
    max-width: 500px;
    object-fit: cover; /* Ensures image isn't distorted */
    border-radius: 2rem;
    border: 6px solid #ffffff; 
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Right Side: Text Content Box */
.info-content-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers text vertically if it's shorter than image */
    text-align: left;
}

.premium-label {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
}

.info-content-right h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.info-content-right h2 span {
    color: var(--accent);
}

.info-content-right p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.brand-highlight {
    color: var(--accent);
    font-weight: 700;
}

/* Responsive View */
@media (max-width: 992px) {
    .info-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .info-content-right {
        text-align: center;
    }
    
    .info-visual-left img {
        height: 350px; /* Fixed height for mobile so it doesn't vanish */
    }
}


/* Container Logic */
.v4-services-wrapper {
    padding: 80px 0%; /* Increased side gap */
    max-width: 1600px;
    margin: 0 auto;
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.v4-section-head {
    text-align: center;
    margin-bottom: 60px;
}

.v4-top-label {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.v4-title-main {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main);
    line-height: 1.2;
}

.v4-highlight {
    color: var(--accent);
}

/* GRID SYSTEM */
.v4-services-layout {
    display: grid;
    gap: 30px;
    /* Desktop Default: 3 Columns */
    grid-template-columns: repeat(3, 1fr);
}

/* CARD STYLING */
.v4-card-item {
    background: var(--card-bg);
    padding: 45px 35px;
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* THEME-BASED BORDER: Invisible-Safe */
    border: 1px solid var(--border);
    
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: default;
}

/* HOVER EFFECTS */
.v4-card-item:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.v4-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.3s;
}

.v4-icon-wrap svg {
    width: 30px;
    height: 30px;
}

.v4-card-item:hover .v4-icon-wrap {
    background: var(--accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.v4-card-item h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.v4-card-item p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */

/* Tablet: 2 per row */
@media (max-width: 1100px) {
    .v4-services-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .v4-services-wrapper {
        padding: 60px 5%; /* Slightly less gap on tablets */
    }
}

/* Mobile: 1 per row */
@media (max-width: 700px) {
    .v4-services-layout {
        grid-template-columns: 1fr;
    }
    .v4-title-main {
        font-size: 1.8rem;
    }
    .v4-card-item {
        padding: 35px 25px;
    }
}

/* Optional: Icon Float Animation */
.v4-card-item:hover .v4-icon-wrap {
    animation: v4Pulse 2s infinite ease-in-out;
}

@keyframes v4Pulse {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

/* --- HEADER DESIGN --- */
.tech-header-box {
    text-align: center;
    margin-bottom: 60px;
}

.tech-pre-title {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.tech-main-title {
    color: var(--text-main);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
}

.accent-glow {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto;
    border-radius: 2px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 1px;
    background: var(--accent);
    left: -35px;
    top: 50%;
    opacity: 0.3;
}

/* --- HONEYCOMB GRID --- */
.honeycomb-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0 2%;
    max-width: 1400px;
    margin: 0 auto;
}

.hex-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hex-head {
    background: var(--accent);
    color: #fff;
    padding: 15px 30px;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hex-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hex-item {
    width: 100px;
    height: 110px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Hover Effects */
.hex-item:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    z-index: 5;
    box-shadow: 0 0 20px var(--accent);
}

/* Offset for the Honeycomb look */
.hex-grid .hex-item:nth-child(even) {
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .honeycomb-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hex-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hex-grid .hex-item:nth-child(even) {
        margin-top: 0;
    }
}

/* --- ALIGNMENT & SPACING --- */
.tech-section {
    padding: 100px 4%; /* Matches standard logo padding */
    max-width: 1400px;
}

.tech-header-box {
    text-align: center; /* Aligns heading with the logo on the left */
    margin-bottom: 60px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 20px 0; /* Changed from 'auto' to '0' to align left */
    border-radius: 2px;
    text-align: center;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 1px;
    background: var(--accent);
    left: 0; /* Starts from left */
    top: 50%;
    opacity: 0.3;
}

.honeycomb-container {
    display: flex;
    justify-content: flex-start; /* Aligns clusters to the left side */
    flex-wrap: wrap;
    text-align: center;
    gap: 60px 40px; /* Vertical and horizontal gap */
    width: 100%;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet: Below 900px -> 2 items in Row 1, 3rd item in Row 2 */
@media (max-width:950px){
    .honeycomb-container {
        justify-content: center;
        text-align: center;
    }
}
/* Tablet: Below 600px -> 2 items in Row 1, 3rd item in Row 2 */
@media (max-width: 600px) {
    .honeycomb-container {
        justify-content: center; /* Centers the 2x1 grid slightly for better balance */
        text-align: center;
    }
    
    .hex-cluster {
        /* This forces the third item to a new line when container width is met */
        flex: 0 1 calc(50% - 40px); 
        min-width: 300px;
    }
}

/* Mobile: Below 800px -> 1 item per row, centered */
@media (max-width: 800px) {
    .tech-header-box {
        text-align: center; /* Center header for mobile aesthetic */
    }
    
    .title-underline {
        margin: 20px auto;
    }
    
    .honeycomb-container {
        flex-direction: column;
        align-items: center; /* Centers the clusters */
        justify-content: center;
    }

    .hex-cluster {
        flex: 1 1 100%;
    }
    
    /* Ensure honeycomb logic stays vertical even on mobile */
    .hex-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
 




@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;
    }
}

        
        
        /* --- ULTRA-RESPONSIVE SYSTEM --- */
/* --- RESPONSIVE ARCHITECTURE --- */

/* 1. Global Reset for Centering */
main, .impact-section, .services-grid, .comparison-container, footer {
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center; /* Keeps everything centered */
    margin: 0 auto !important;
    overflow-x: hidden; /* Prevents unwanted side-scroll */
}

/* 2. Horizontal Scroll Section (Keep it functional on all screens) */
.modern-flex-container {
    display: flex !important;
    flex-direction: row !important; /* Forces horizontal flow */
    overflow-x: auto !important;
    width: 100%;
    gap: 20px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.impact-slide {
    flex: 0 0 85%; /* Shows most of the card, hints at the next one */
    scroll-snap-align: center;
}

/* 3. Tablet & Desktop (Above 700px) - 2 Cards per row */
@media (min-width: 851px) {
    .services-grid, .comparison-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
        width: 100%;
        max-width: 1100px;
    }
}

/* 4. Mobile & Small Screens (Below 700px) - 1 Card per row */
@media (max-width: 700px) {
    .services-grid, .comparison-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .service-card, .card-perspective {
        width: 95% !important; /* Full width minus small margin */
        max-width: 450px;
        margin-bottom: 20px;
    }

    /* Adjust Card Header for spacing */
    .card-header {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
    }

    .price-area {
        align-items: center !important;
    }

    .ultra-heading {
        font-size: 2.5rem !important;
    }
}

/* 5. Ultra-Small Screen Support (Down to 200px) */
@media (max-width: 320px) {
    main {
        padding: 60px 10px !important;
    }

    .logo { font-size: 1.2rem !important; }

    .ultra-heading { font-size: 1.8rem !important; }

    /* Shrink Price and Buttons to fit 200px */
    .price-tag {
        font-size: 1.5rem !important;
    }

    .btn-adjust, .btn-submit {
        font-size: 0.7rem !important;
        padding: 10px 5px !important;
        width: 100%;
    }

    /* Footer adjustments for tiny screens */
    .footer-top-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .obsidian-social-grid {
        grid-template-columns: 1fr !important; /* Stack social icons */
        width: 100%;
    }

    .obsidian-bottom {
        flex-direction: column !important;
        gap: 10px;
        font-size: 0.6rem !important;
    }

    .sys-code {
        display: block;
        margin: 5px 0;
    }
}

/* 6. Navigation Logic */
@media (max-width: 991px) {
    .nav-links, .nav-right .whatsapp-btn {
        display: none; /* Hide desktop nav */
    }
    
    .navbar {
        justify-content: space-between;
        padding: 15px 5%;
    }
}

/* --- RESPONSIVE SHRINKING LOGIC --- */

/* For Tablets and Smaller Desktops (992px to 1200px) */
@media (max-width: 1200px) {
    .services-grid {
        gap: 20px; /* Tighten gap to save space */
        padding: 15px;
    }
    .service-card {
        padding: 25px; /* Reduce internal spacing */
        height: 600px; /* Slightly shorter height */
    }
    .title-area h2 {
        font-size: 1.5rem; /* Shrink title */
    }
    .price-tag {
        font-size: 1.8rem; /* Shrink price */
    }
}

/* For Small Tablets and Large Mobiles (768px to 991px) */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 cards per row */
        gap: 15px;
    }
    .service-card {
        padding: 20px;
        height: 550px;
        border-radius: 18px;
    }
    .title-area h2 {
        font-size: 1.3rem;
    }
    .price-tag {
        font-size: 1.5rem;
    }
    .feat-info h4 {
        font-size: 0.85rem; /* Shrink feature text */
    }
    .btn-submit {
        padding: 14px; /* Smaller button */
        font-size: 0.8rem;
    }
}

/* For Mobile Phones (Stacking point - below 768px) */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Switch to 1 card per row to prevent squishing */
        max-width: 500px; /* Keep card readable on mobile */
    }
    .service-card {
        height: auto; /* Let height expand based on content for mobile */
        min-height: 500px;
        padding: 25px;
    }
    .title-area h2 {
        font-size: 1.6rem;
    }
}

/* Extra logic to prevent "Side Cutting" */
.service-card {
    width: 100%; /* Ensure card always fits its grid cell */
    box-sizing: border-box; /* Include padding in width calculation */
    overflow: hidden; /* Safety net */
}

/* --- UPDATED PREMIUM BLUE SCROLLBAR --- */

/* The scrollable area logic */
.scroll-box {
    flex-grow: 1; 
    max-height: 250px; 
    overflow-y: auto !important; 
    padding-right: 10px;
    margin: 10px 0;
}

/* Chrome, Edge, and Safari */
.scroll-box::-webkit-scrollbar {
    width: 6px;
}

.scroll-box::-webkit-scrollbar-track {
    /* Subtle dark blue tint for the track */
    background: rgba(0, 210, 255, 0.03); 
    border-radius: 10px;
}

.scroll-box::-webkit-scrollbar-thumb {
    /* Premium Light Blue Gradient */
    background: linear-gradient(180deg, #00d2ff 0%, #3a7bd5 100%);
    border-radius: 10px;
    /* Neon Blue Glow effect */
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6); 
}

/* Specific Fix for Mobile (770px and below) */
@media screen and (max-width: 770px) {
    .service-card {
        min-height: auto; 
    }

    .scroll-box {
        max-height: 200px; 
        overflow-y: scroll !important; 
        -webkit-overflow-scrolling: touch; 
    }
}

/* Firefox Support */
@supports (scrollbar-color: auto) {
    .scroll-box {
        scrollbar-width: thin;
        scrollbar-color: #00d2ff rgba(0, 210, 255, 0.03);
    }
}

/* --- DYNAMIC FEATURE TEXT --- */

.feat-info h4 {
    /* Uses #f1f5f9 in dark and #1e293b in light */
    color: var(--text-main); 
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feat-info p {
    /* Uses #94a3b8 in dark and #64748b in light */
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 2px 0 0 0;
    transition: color 0.3s ease;
}

/* Feature Numbering */
.feat-num {
    color: var(--accent); /* Uses your primary blue/accent color */
    font-weight: bold;
    font-family: monospace;
}

/* --- PREMIUM BLUE SCROLLBAR (Adaptive) --- */

.scroll-box::-webkit-scrollbar {
    width: 6px;
}

.scroll-box::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-box::-webkit-scrollbar-thumb {
    /* Uses a gradient based on your --accent color */
    background: linear-gradient(180deg, var(--accent) 0%, #3a7bd5 100%);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Light Mode specific scrollbar tweak for better visibility */
[data-theme="light"] .scroll-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03); 
}
/* --- 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 */
    }
}


    