/* === GLOBAL FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* === GLOBAL SITE STYLES === */
:root {
    /* New Color Scheme & Gradients */
    --primary-color-original: #4A90E2; /* Kept for reference or specific uses if needed */
    --primary-color-original-rgb: 74, 144, 226; /* RGB for use in rgba() */
    --primary-color: #5E72E4; /* A more vibrant, modern purple-blue */
    --primary-color-dark: #3B4CBF;
    --primary-gradient: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%); /* Vibrant purple to blue */
    --primary-gradient-hover: linear-gradient(135deg, #8A41EB 0%, #4595FD 100%);

    --secondary-color: #F5A623; /* Vibrant orange accent */
    --secondary-color-dark: #D88A0B;
    --secondary-gradient: linear-gradient(135deg, #F8C23A 0%, #F5A623 100%);


    --success-color: #2DCE89; /* Modern green */
    --success-color-dark: #1A9E6D;
    --danger-color: #F5365C; /* Modern red */
    --info-color: var(--primary-color);

    --background-color: #F8F9FE; /* Lighter, slightly bluish off-white */
    --surface-color: #FFFFFF;
    --surface-color-darker: #F4F6FC; /* For subtle differentiation if needed */
    --text-color: #32325D; /* Dark blue-grey, softer than black */
    --text-color-light: #525F7F;
    --text-muted-color: #8898AA;
    --border-color: #E9ECEF;
    --hero-bg-color: linear-gradient(120deg, #EBF4FF 0%, #F6F9FF 100%); /* Light blue gradient */


    --font-family: 'Poppins', sans-serif; /* Poppins for all, varying weights */
    --card-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --card-radius: 10px;
    --input-radius: 8px;
    --button-radius: 8px;

    --tooltip-bg: var(--text-color);
    --tooltip-text: #fff;

    --text-highlight-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7; /* Slightly more spacious line height */
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    overflow-x: hidden;
}

/* === UTILITY CLASSES === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === SHARED HEADER === */
.site-header {
    background: var(--surface-color); /* Solid color for better sticky contrast */
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 0.8rem 1.5rem; /* Adjusted padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.6rem; /* Slightly larger */
    font-weight: 800; /* Bolder */
}
.logo .logo-icon {
    margin-right: 0.6rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}
.logo:hover .logo-icon {
    transform: rotate(15deg);
}
.logo span {
    color: var(--text-color);
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem; /* Increased gap */
}
.main-nav a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Slightly below text */
    left: 0;
    width: 0;
    height: 3px; /* Thicker underline */
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.7rem; /* Larger icon */
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}
.mobile-nav-toggle:hover {
    color: var(--primary-color);
}


/* === SHARED FOOTER === */
.site-footer {
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-top: auto;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}


/* === LANDING PAGE SPECIFIC STYLES === */
.landing-page-main {
    flex-grow: 1;
}

.hero-section {
    background: var(--hero-bg-color);
    padding: 5rem 1rem 6rem; /* Increased padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(85vh - 80px);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 750px; /* Wider content */
    z-index: 1;
    position: relative;
}

@keyframes textFocusIn {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}
.hero-section h1 {
    font-size: 3.5rem; /* Larger for impact */
    font-weight: 800; /* Bolder Poppins */
    color: var(--text-color);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: textFocusIn 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
.hero-section .highlight {
    background: var(--text-highlight-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    padding: 0 0.2em; /* Add a little space if it's inline */
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    animation: textFocusIn 1.2s cubic-bezier(0.550, 0.085, 0.680, 0.530) 0.3s both;

}
.btn-hero {
    padding: 1rem 2.5rem; /* Larger padding */
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    animation: textFocusIn 1.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) 0.6s both;

}

.hero-image-container {
    position: absolute;
    bottom: -60px; /* Adjusted */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.08; /* More subtle */
    z-index: 0;
}
.hero-bg-icon {
    font-size: 30rem; /* Larger */
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
	100% { transform: translateY(0px); }
}


.features-section {
    padding: 4rem 1rem; /* Increased padding */
    max-width: 1100px; /* Wider */
    margin: 3rem auto;
}
.features-section .section-title {
    text-align: center;
    border-bottom: none;
    margin-bottom: 3rem; /* More space */
    font-size: 2.5rem; /* Larger */
    font-weight: 700;
    color: var(--text-color);
}
.features-section .section-title::after { /* Optional: stylish underline */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Larger minmax */
    gap: 2.5rem; /* Increased gap */
}
.feature-item {
    text-align: center;
    padding: 2rem; /* Increased padding */
    background-color: var(--surface-color);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 6px rgba(50,50,93,.07), 0 1px 3px rgba(0,0,0,.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent; /* For hover effect */
}
.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow);
    border-top-color: var(--primary-color);
}
.feature-icon {
    font-size: 3rem; /* Larger icons */
    margin-bottom: 1.2rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transition: transform 0.3s ease;
}
.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}
.feature-item h3 {
    font-size: 1.3rem; /* Slightly larger */
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}
.feature-item p {
    font-size: 0.95rem; /* Slightly larger */
    color: var(--text-color-light);
}

/* === APP PAGE SPECIFIC STYLES === */
.app-page-content {
    max-width: 800px;
    width: 95%;
    margin: 2.5rem auto; /* Increased margin */
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Increased gap */
}

.card {
    background: var(--surface-color);
    padding: 2.5rem; /* Consistent increased padding */
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.section-title { /* General style, also used in App page */
    font-weight: 700; /* Bolder */
    color: var(--text-color); /* Main text color for titles */
    margin-top: 0;
    margin-bottom: 2rem; /* More space */
    text-align: left;
    font-size: 1.8rem; /* Larger */
    padding-bottom: 1rem; /* Increased padding */
    position: relative; /* For fancy underline */
}

.section-title::before { /* Gradient underline effect */
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px; /* Adjust width */
    border-radius: 2px;
    background: var(--primary-gradient);
}
/* For #results, the H2 inside .results-header uses a different structure */
.results-header .section-title::before { display: none; }


.header-icon {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

#progressBarContainer {
    width: 100%;
    background-color: var(--border-color);
    border-radius: var(--input-radius);
    margin-bottom: 2.5rem;
    height: 16px; /* Thicker */
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--success-color-dark));
    border-radius: var(--input-radius);
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1); /* Smoother transition */
    position: relative;
    overflow: hidden; /* For the shine effect */
}
/* Adding a subtle shine animation to progress bar */
#progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg, 
        rgba(255,255,255, .2) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255, .2) 50%, 
        rgba(255,255,255, .2) 75%, 
        transparent 75%, 
        transparent
    );
    z-index: 1;
    background-size: 50px 50px;
    animation: moveShine 2s linear infinite;
    opacity: 0.7;
}
@keyframes moveShine {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

#progressText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem; /* Slightly larger */
    color: var(--surface-color);
    font-weight: 600; /* Bolder */
    mix-blend-mode: difference;
    line-height: 1;
    text-shadow: 0 0 3px rgba(0,0,0,0.4);
}


.form-group {
    margin-bottom: 2rem; /* Increased spacing */
    position: relative;
}

.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-group label:not(.radio-label), .form-question-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem; /* Increased spacing */
    font-weight: 600; /* Bolder label */
    color: var(--text-color); /* Darker for emphasis */
    font-size: 1rem;
}

.tooltip-trigger {
    margin-left: 8px;
    color: var(--primary-color);
    cursor: help;
    transition: color 0.2s ease, transform 0.2s ease;
}
.tooltip-trigger:hover {
    color: var(--primary-color-dark);
    transform: scale(1.1);
}
.tooltip-trigger i {
    font-size: 1.1rem;
}

.tooltip-box {
    position: absolute;
    background-color: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 0.75rem 1rem; /* Increased padding */
    border-radius: var(--input-radius);
    font-size: 0.85rem;
    z-index: 100;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25); /* Stronger shadow */
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.95); /* Initial state for animation */
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.tooltip-box.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.form-group select,
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.85rem 1.2rem; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    box-sizing: border-box;
    background-color: var(--surface-color-darker); /* Slightly different bg */
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-group select:focus,
.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-original-rgb), 0.15); /* Using primary color RGB with alpha */
    outline: none;
    background-color: var(--surface-color);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%238898AA' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* Larger, re-colored arrow */
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3rem;
}


.radio-group {
    display: flex;
    gap: 1rem; /* Slightly reduced gap */
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.radio-label {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    background-color: var(--surface-color-darker);
}
.radio-label:hover {
    background-color: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.radio-group input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: var(--primary-color);
    transform: scale(1.2); /* Larger radio */
    transition: transform 0.2s ease;
}
/* The :has() pseudo-class is used below, assuming HTML structure like: <label class="radio-label"><input type="radio">Text</label> */
/* If HTML is <input type="radio" id="..."><label for="..." class="radio-label">, then JS or different CSS would be needed. */
/* The original .radio-group input[type="radio"]:checked + .radio-label would only work if input is a direct sibling before the label text. */
.radio-label:has(input[type="radio"]:checked) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.radio-label:has(input[type="radio"]:checked):hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}
.radio-label:has(input[type="radio"]:focus) {
    border-color: var(--primary-color);
     box-shadow: 0 0 0 3px rgba(var(--primary-color-original-rgb), 0.15);
}
.radio-label:has(input[type="radio"]:checked:focus) {
    box-shadow: 0 0 0 3px rgba(255,255,255, 0.5); /* White glow on checked active */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem; /* Slightly more padding */
    border-radius: var(--button-radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600; /* Bolder */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition for all props */
    box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
    text-transform: uppercase; /* More distinct button text */
    letter-spacing: 0.5px;
}
.btn:hover {
    transform: translateY(-3px) scale(1.02); /* More pronounced hover */
    box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
}
.btn:active {
    transform: translateY(0px) scale(1);
    box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
}
.btn-icon-left { margin-right: 0.7rem; }
.btn-icon-right { margin-left: 0.7rem; }

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-gradient-hover);
}
.btn-primary:disabled {
    background: var(--text-muted-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--text-color); /* Dark text for better contrast on orange */
}
.btn-secondary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color); /* Thicker border */
    box-shadow: none;
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color); /* Use original primary RGB for glow */
    box-shadow: 0 4px 10px rgba(var(--primary-color-original-rgb), 0.2);
}


#submitButton {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.8rem; /* Larger padding for main CTA */
    font-size: 1.1rem; /* Larger font */
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem; /* More space */
    flex-wrap: wrap;
    gap: 1.5rem;
}
.results-header .section-title { /* Title specific to results header */
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    flex-grow: 1;
    font-size: 1.6rem; /* Slightly smaller than main section title */
    position: relative;
}
.results-header .section-title #recommendationName { /* Gradient for recommended name */
    background: var(--text-highlight-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    padding: 0 0.1em;
    font-weight: 800;
}

.results-header-actions {
    display: flex;
    gap: 1rem; /* More space between buttons */
    flex-shrink: 0;
}


#results {
    /* No specific style needed as it's inside a .card */
}

@keyframes fadeInUp { /* Existing animation definition from user's original JS thought process - keep this */
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Elements will be animated by JS script using `fadeInUp` (el.style.animation = ...) */
.app-page-content .recommendation-card, 
.app-page-content #results h4, 
.app-page-content #results ul,
.app-page-content .info-block,
.app-page-content .next-steps-section {    opacity: 0; /* Initial state for JS animation */
}


.recommendation-card {
    background-color: var(--surface-color-darker); /* Slightly different bg for differentiation */
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem; /* Adjusted padding */
    margin-bottom: 1.5rem;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    border-left: 5px solid transparent; /* Placeholder for hover */
}
.recommendation-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--card-shadow);
    border-left-color: var(--primary-color);
}

.recommendation-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem; /* Larger category titles */
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.recommendation-card h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solid icons */
    margin-right: 0.8rem;    font-size: 1.1rem; /* Slightly larger icon */
    width: 1.5em; /* Ensure alignment, adjust as needed */
    text-align: center;
    display: inline-block;
    color: var(--primary-color);
    content: "\f05a"; /* Default icon: fa-info-circle for general/other cards */
}

/* Specific icons for the first few recommendation cards based on their order */
.recommendation-card:nth-of-type(1) h3::before { content: "\f108"; } /* Frontend: fa-computer */
.recommendation-card:nth-of-type(2) h3::before { content: "\f233"; } /* Backend: fa-server */
.recommendation-card:nth-of-type(3) h3::before { content: "\f1c0"; } /* Database: fa-database */
.recommendation-card:nth-of-type(4) h3::before { content: "\f0c2"; } /* Deployment: fa-cloud */
.recommendation-card p, .recommendation-card li {
    font-size: 0.95rem; /* Slightly larger text */
    margin-bottom: 0.6rem;
    color: var(--text-color-light);
}
.recommendation-card .tech-main {
    font-weight: 600; /* Bolder */
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem; /* Emphasize main tech */
}
.btn-copy-tech {
    background: transparent; /* Transparent background */
    border: 1px solid var(--border-color); /* Subtle border */
    color: var(--text-muted-color);
    cursor: pointer;
    padding: 0.3rem 0.6rem; /* Adjusted padding */
    font-size: 0.85em;
    border-radius: var(--button-radius);
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}
.btn-copy-tech:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-original-rgb), 0.05); /* Use original primary RGB for background tint */
}
.btn-copy-tech:disabled {
    cursor: default;
    opacity: 0.7;
}
.btn-copy-tech .fa-check {
    color: var(--success-color);
}

.recommendation-card .tech-alternative {
    font-size: 0.9em; /* Relative to parent p */
    color: var(--text-muted-color);
    margin-top: 0.35rem;
}
.recommendation-card .tech-alternative strong {
    color: var(--secondary-color); /* Use accent for alternative highlight */
    font-weight: 600;
}
.recommendation-card p strong { /* For "Rationale:", etc. */
    font-weight: 600;
    color: var(--text-color);
}

#results h4 { /* Advantages/Considerations/Learning subtitles */
    font-size: 1.2rem; /* Larger */
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color); /* Thicker border */
    position: relative;
}
#results h4::after { /* Subtle colored line under subtitles */
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Aligns with border */
    height: 2px;
    width: 50px;
    background: var(--primary-color);
}

#results ul {
    padding-left: 0;
    list-style-type: none;
    margin-bottom: 1.5rem;
}
#results ul li {
    margin-bottom: 0.6rem;
    padding-left: 1.8rem; /* More space for custom bullet */
    position: relative;
    font-size: 0.95rem;
}
#results ul li::before { /* Custom bullet - stylish check */
    content: '✓'; /* Keeping it simple and clear */
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--success-color);
    font-weight: 900; /* Bolder check */
    font-size: 1.1em;
}
#results .learning-resources-list li::before {
    content: '\f0c1'; /* Font Awesome link icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.9em;
}
#results .learning-resources-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}
#results .learning-resources-list a:hover {
    color: var(--primary-color-dark);
    letter-spacing: 0.3px; /* Subtle hover effect */
}

#disclaimer {
    font-size: 0.85rem; /* Slightly larger */
    margin-top: 2.5rem;
    padding: 1rem 1.5rem; /* More padding */
    background-color: var(--surface-color-darker); /* Using off-white */
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color); /* Accent color for disclaimer */
    color: var(--text-color-light);
    border-radius: var(--input-radius);
    text-align: left; /* Align left for better readability */
}
#disclaimer::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f071"; /* fa-triangle-exclamation (warning) */
    margin-right: 0.75rem;
    color: var(--secondary-color);
    font-size: 1.1em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }
    .site-header .main-nav.active {
        display: flex;
    }
    .site-header .main-nav ul {
        flex-direction: column;
        gap: 0.5rem; /* Tighter gap in mobile nav */
        width: 100%;
    }
    .site-header .main-nav a {
        display: block;
        padding: 0.8rem 1rem; /* Generous tap targets */
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }
    .site-header .main-nav a::after {
        display: none;
    }
     .site-header .main-nav li:last-child a {
        border-bottom: none;
    }
    .mobile-nav-toggle {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem; /* Adjusted for mobile */
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-section {
        padding: 3.5rem 1rem 4rem;
        min-height: calc(75vh - 70px);
    }
    .hero-bg-icon {
        font-size: 22rem;
    }

    .features-section .section-title {
        font-size: 2rem;
    }
    .feature-item {
        padding: 1.5rem;
    }
    
    .app-page-content {
        margin: 2rem auto;
        gap: 2rem;
    }
    .app-page-content .card {
        padding: 2rem;
    }
    .app-page-content .section-title {
        font-size: 1.6rem;
    }
    .section-title::before { width: 50px; } /* Adjust underline for smaller titles */

    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    .results-header .section-title {
        text-align: center; /* Center results title on mobile */
        margin-bottom: 1.5rem;
    }
    .results-header-actions {
        justify-content: center; /* Center action buttons */
        flex-wrap: wrap; /* Allow buttons to wrap */
    }
    #startOverButton, #printRecommendationButton {
        width: auto;
        flex-grow: 1;
        max-width: 220px; /* Max width for wrapped buttons */
    }
     #submitButton {
        font-size: 1rem;
    }
    .tooltip-box {
        max-width: 250px;
    }
/* Ensure info block grid spans correctly on smaller screens if needed (already handled by general .info-blocks-grid) */
    /* .info-blocks-grid {
        grid-template-columns: 1fr; 
    }
    .info-block.wide {
        grid-column: span 1; 
    } */
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    .logo .logo-icon {
        font-size: 1.5rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-subtitle { font-size: 1rem; }
    .btn-hero {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
    .hero-bg-icon {
        font-size: 18rem;
        bottom: -40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }

    .app-page-content .form-group label:not(.radio-label), 
    .app-page-content .form-question-title {
        font-size: 0.95rem;
    }
    .app-page-content .radio-group {
        gap: 0.75rem;
    }
    .radio-label {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }
    #submitButton {
        padding: 0.85rem 1.4rem;
    }
    .results-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    #startOverButton, #printRecommendationButton {
        width: 100%;
        max-width: none;
    }
    .recommendation-card h3 {
        font-size: 1.15rem;
    }
    .recommendation-card p, .recommendation-card li {
        font-size: 0.9rem;
    }
}


/* Print-specific styles (largely preserved, with minor adjustments for new base styles) */
@media print {
    body {
        font-size: 10pt;
        margin: 0;
        padding: 0;
        background-color: #fff !important;
        color: #000 !important;
    }
    .page-wrapper {
        box-shadow: none;
    }
    .site-header, .site-footer, .mobile-nav-toggle {
        display: none !important;
    }
    
    .app-page-content header {
        background: none !important;
        color: #000 !important;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid #ccc;
        box-shadow: none;
    }
     .app-page-content header h1 {
        font-size: 16pt;
        text-align: left;
        color: #000 !important;
    }
    .section-title::before, .section-title::after, #results h4::after { display:none !important; } /* Hide decorative underlines */

    .tooltip-trigger, #progressBarContainer, #techForm,
    .results-header-actions,
    .tooltip-box, #submitButton, .btn-copy-tech, .btn {
        display: none !important;
    }

    .app-page-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10mm !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .app-page-content .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 0 !important;
        page-break-inside: avoid;
    }
    #questionnaire { display: none !important; }
    #results { display: block !important; border-top: none !important; padding-top: 0 !important; }

    .results-header .section-title {
        border-bottom: none !important;
        text-align: left !important;
        color: #000 !important;
    }
     .results-header .section-title #recommendationName {
        background: none !important; /* No gradient for print */
        -webkit-text-fill-color: inherit !important;
        text-fill-color: inherit !important;
        color: #000 !important; /* Black text for print */
    }
    .app-page-content .section-title {
        font-size: 14pt !important;
        color: #000 !important;
        border-bottom-color: #ccc !important;
        padding-bottom: 5px !important;
    }
    .recommendation-card {
        border-left: none !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
        background-color: #fff !important;
    }
    .recommendation-card h3 {
        font-size: 12pt !important;
        color: #000 !important;
    }
    .recommendation-card h3::before {
        display: none !important;
    }
    #results ul {
        padding-left: 20px !important;
        list-style-type: disc !important; /* Use standard disc for print */
    }
    #results ul li::before {
        display: none !important; /* Hide custom ::before, use list-style-type */
    }
    #results .learning-resources-list a {
        color: var(--primary-color-original) !important; /* Use a basic blue for print links */
        text-decoration: none !important;
    }
    #results .learning-resources-list a::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555 !important;
    }
    #disclaimer {
        background-color: #f9f9f9 !important;
        border: 1px solid #ccc !important;
        color: #333 !important;
        font-size: 8pt !important;
        padding: 10px !important;
        text-align: left !important;
        border-left: 2px solid #666 !important;
    }
    #disclaimer::before { display: none !important; }
}
/* ... (keep all existing styles) ... */

/* Styles for New Informational Blocks */
.info-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.info-block {
    background-color: var(--surface-color); /* Lighter than recommendation-card */
    padding: 1.25rem 1.5rem;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.info-block.wide {
    grid-column: span 2; /* Makes it take full width if only one column or span two if more fit */
}
@media (max-width: 900px) { /* Adjust when wide blocks should stack */
    .info-block.wide {
        grid-column: span 1;
    }
}

.info-block h4 {
    font-size: 1.05rem; /* Slightly smaller than other h4s */
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    border-bottom: none; /* No border for these sub-headings */
    padding-bottom: 0;
}
.info-block h4::after { display: none; } /* Remove ::after from general h4 style if it exists */

.info-block h4 i {
    margin-right: 0.6rem;
    color: var(--primary-color);
    font-size: 1em;
}

.info-block p,
.info-block ul {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 0; /* Remove bottom margin for p inside block */
}
.info-block ul {
    list-style: none;
    padding-left: 0;
}
.info-block ul li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 0.3rem;
}
.info-block ul li::before {
    content: '›'; /* Chevron bullet */
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.difficulty-tag {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 15px; /* Pill shape */
    font-weight: 500;
    font-size: 0.85rem;
    color: white;
    line-height: 1.4; /* Ensure text fits well */
    text-align: center;
}
.difficulty-easy {
    background-color: var(--success-color);
}
.difficulty-medium {
    background-color: var(--secondary-color); /* Orange for medium */
}
.difficulty-advanced {
    background-color: var(--danger-color);
}
.difficulty-easy-to-medium {
    background: linear-gradient(90deg, var(--success-color) 50%, var(--secondary-color) 50%);
}
.difficulty-medium-to-advanced {
     background: linear-gradient(90deg, var(--secondary-color) 50%, var(--danger-color) 50%);
}
.difficulty-varies {
    background-color: var(--text-muted-color);
}


/* Next Steps Section Styles */
.next-steps-section {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: var(--surface-color-darker);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
}
.next-steps-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: none;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}
.next-steps-section h4::after { display: none; }
.next-steps-section h4 i {
    margin-right: 0.75rem;
    font-size: 1.1em;
}

.next-steps-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.next-steps-section ul li {
    padding-left: 1.8rem; /* Space for custom bullet */
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color-light);
}
.next-steps-section ul li::before {
    font-family: "Font Awesome 6 Free"; /* Using Font Awesome */
    font-weight: 900;
    content: '\f138'; /* fa-arrow-alt-circle-right or similar, e.g., f054 for fa-chevron-right */
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.9em;
}

/* Ensure info block grid spans correctly on smaller screens if needed */
@media (max-width: 768px) {
    .info-blocks-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .info-block.wide {
        grid-column: span 1; /* No spanning needed when single column */
    }
}