/* index.css - Global Styles for LoadFrom.net */

/* ---------------------------------- */
/* Basic Resets & Global Variables    */
/* ---------------------------------- */
:root {
    /* Color Palette - Updated for better contrast and branding */
    --color-primary: #337AB7; /* A strong blue for accents, buttons */
    --color-secondary: #5BC0DE; /* A lighter blue for secondary actions */
    --color-success: #28a745; /* Green */
    --color-danger: #dc3545; /* Red */
    --color-warning: #ffc107; /* Yellow */
    --color-info: #17a2b8; /* Cyan */
    
    --color-white: #ffffff;
    --color-light-gray: #F8F9FA; /* Very light background for sections */
    --color-light-gray-2: #ECF0F1; /* Slightly darker light gray for card backgrounds, borders */
    --color-gray: #7F8C8D; /* General text color for descriptions, less prominent text */
    --color-dark-gray: #2C3E50; /* Headings, main text for strong contrast */
    --color-darkest-gray: #212529; /* Darkest for navbar, footer */

    --color-teal: #1ABC9C; /* Your brand primary color - Adjusted for vibrance */
    --color-dark-teal: #16A085; /* Darker teal for hero section background, hover states */

    --color-text: var(--color-dark-gray); /* Default text color */
    --color-heading: var(--color-dark-gray); /* Default heading color */
    --color-link: var(--color-teal);
    --color-link-hover: var(--color-dark-teal);
    --color-border: #ced4da;

    /* RGB values for transparent effects (for focus shadows) */
    --color-teal-rgb: 26, 188, 156; /* RGB for #1ABC9C */

    /* Typography */
    --font-primary: 'Poppins', sans-serif; /* For headings and prominent text */
    --font-secondary: 'Inter', sans-serif; /* For body text, better readability */
    --font-size-base: 16px;
    --line-height-base: 1.6; /* Improved line height for readability */

    /* Shadows */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1); /* Updated values */
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15); /* Updated values */
    --shadow-large: 0 8px 16px rgba(0, 0, 0, 0.2); /* Updated values */

    /* Border Radius */
    --border-radius-small: 5px;
    --border-radius-medium: 10px; /* Slightly larger for a softer look */
    --border-radius-large: 15px; /* Larger for major elements like content cards */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: var(--line-height-base);
    color: var(--color-text); /* Uses updated text color variable */
    background-color: var(--color-light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Better font rendering */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------------------------------- */
/* Typography                         */
/* ---------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-heading);
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 700; /* Ensure headings are bold */
}

h1 { font-size: 2.8rem; } /* Adjusted for better hierarchy */
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
    font-size: var(--font-size-base); /* Ensure base paragraphs are consistent */
    line-height: var(--line-height-base);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Added transition for underline */
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline; /* More subtle underline on hover */
}

ul {
    list-style: none;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-teal { color: var(--color-teal) !important; } /* !important to ensure override */
.text-primary { color: var(--color-primary) !important; }
.text-white { color: var(--color-white) !important; }

/* ---------------------------------- */
/* Layout & Spacing                   */
/* ---------------------------------- */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Slightly more padding for aesthetics */
}

.section-padding {
    padding: 80px 0; /* More consistent vertical padding for major sections */
}

.section-title {
    font-size: 2.8rem; /* Consistent with h1 for hero/main titles */
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-heading);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-dark-gray);
}

.section-description {
    font-size: 1.15rem; /* Larger for better readability */
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7; /* Improved line height */
}

.main-content {
    flex: 1; /* Allows main content to grow and push footer down */
}

.bg-light-gray { background-color: var(--color-light-gray); }
.bg-white { background-color: var(--color-white); }
.bg-dark-teal { background-color: var(--color-dark-teal); } /* Added for Hero section */

/* For general content cards (About, Privacy, Disclaimer) */
.content-card {
    background-color: var(--color-white);
    padding: 50px; /* More generous padding */
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    margin: 40px auto; /* Centering and spacing */
    max-width: 900px; /* Max width for readability */
    text-align: left; /* Default text alignment for content pages */
}

.content-card h2 {
    text-align: center;
    margin-bottom: 30px;
}
.content-card h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.content-card p {
    margin-bottom: 15px;
    line-height: 1.7;
}
.content-card ul, .content-card ol {
    margin-left: 25px;
    margin-bottom: 15px;
}
.content-card ul li, .content-card ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ---------------------------------- */
/* Buttons                            */
/* ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px; /* Larger padding for better clickability */
    border: none;
    border-radius: var(--border-radius-medium);
    font-family: var(--font-primary);
    font-size: 1.1rem; /* Slightly larger font */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    user-select: none;
    line-height: 1; /* Ensure text sits nicely vertically */
}

.btn-primary {
    background-color: var(--color-primary); /* Changed to var(--color-primary) for consistency */
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #286090; /* Darker shade of primary for hover */
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--color-success);
    color: var(--color-white);
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--color-danger);
    color: var(--color-white);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: var(--border-radius-small);
}

.btn-lg { /* New large button class for hero section */
    padding: 18px 35px;
    font-size: 1.25em;
    border-radius: var(--border-radius-medium);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary); /* Changed to var(--color-primary) */
    border: 2px solid var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

/* Icon in button */
.btn .icon-left {
    margin-right: 8px;
}
.btn .icon-right {
    margin-left: 8px;
}

/* ---------------------------------- */
/* Forms                              */
/* ---------------------------------- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark-gray);
    font-size: 1em; /* Ensure label font size is good */
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-medium); /* Softer corners */
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-teal-rgb), 0.25); /* Teal focus shadow */
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ---------------------------------- */
/* Navbar & Mobile Menu               */
/* ---------------------------------- */
.navbar {
    background-color: var(--color-darkest-gray);
    color: var(--color-white);
    padding: 20px 0; /* Slightly more padding for a stronger header */
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-size: 2.2rem; /* Larger brand name */
    font-weight: 800; /* Bolder */
    margin: 0;
}

.brand-name a {
    color: var(--color-white);
    text-decoration: none;
}

.brand-name span {
    color: var(--color-teal);
}

.main-nav {
    display: flex; /* Ensure desktop nav items are side-by-side */
    align-items: center;
}

.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600; /* Bolder nav links */
    margin-left: 30px;
    padding: 5px 0;
    transition: color 0.2s ease;
    position: relative; /* For underline effect */
}

.main-nav a::after { /* Underline effect */
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--color-teal);
    left: 0;
    bottom: -5px; /* Position below text */
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu (Desktop) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    font-weight: 600; /* Bolder */
    font-size: 1.05rem; /* Consistent with other nav links */
    cursor: pointer;
    padding: 5px 0;
    margin-left: 30px;
    display: flex;
    align-items: center;
    position: relative; /* For consistency with line effect */
}
/* No ::after for dropdown toggle, chevron handles visual cue */

.dropdown-toggle:hover {
    color: var(--color-teal);
}

.dropdown-icon {
    font-size: 0.8em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px); /* Position slightly lower for shadow/visual break */
    left: 0;
    background-color: var(--color-darkest-gray);
    min-width: 250px; /* Slightly wider for longer tool names */
    box-shadow: var(--shadow-medium);
    z-index: 1001; /* Above navbar for visibility */
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    padding: 10px 0;
}

.dropdown-menu a {
    color: var(--color-white);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px; /* More space for icons */
    text-align: left;
    white-space: nowrap;
    margin: 0; /* Override default margin */
    font-weight: 500; /* Slightly lighter for dropdown items */
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover background */
    color: var(--color-teal);
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown on hover */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Nav Toggle (Hidden on Desktop) */
.mobile-nav-toggle {
    display: none; /* Hide on desktop */
}

.menu-button {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.8rem; /* Larger button */
    padding: 5px 10px;
}

.menu-icon {
    width: 30px; /* Larger icon */
    height: 30px;
    color: var(--color-white);
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed to cover whole screen */
    top: 0; /* Start from top */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 37, 41, 0.98); /* Slightly darker overlay for better contrast */
    z-index: 9999; /* Higher z-index */
    overflow-y: auto; /* Allows scrolling if content overflows */
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.4s ease-in-out;
    padding: 20px; /* General padding inside the panel */
    padding-top: 80px; /* Space from top to avoid overlapping with fixed nav */
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: flex-start; /* Align items to the top */
}

.mobile-menu-panel.is-open {
    display: flex; /* Changed from block to flex for better layout control */
    transform: translateX(0); /* Slide in */
}

.mobile-nav-list {
    width: 100%; /* Ensure the list takes full width */
    max-width: 400px; /* Limit width for readability on large mobile screens */
    margin: 0 auto; /* Center the list */
    padding: 0;
}

.mobile-nav-item {
    display: block;
    color: var(--color-white);
    padding: 18px 20px; /* Increased padding for larger touch targets */
    text-align: center;
    font-size: 1.5rem; /* Larger font for better readability */
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Slightly stronger separator */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.18); /* Stronger hover effect */
    color: var(--color-teal);
}

/* Mobile Dropdown for Tools */
.mobile-dropdown {
    width: 100%;
    /* No specific styles here, rely on children */
}

.mobile-dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.5rem; /* Consistent with mobile nav items */
    cursor: pointer;
    padding: 18px 20px; /* Consistent padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Consistent separator */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--color-teal);
}

.mobile-dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.mobile-dropdown-toggle.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none; /* Hidden by default */
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for submenu to differentiate */
    padding-left: 0;
    width: 100%; /* Ensure submenu takes full width within its parent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Lighter border for internal submenu items */
}

.mobile-submenu.is-open {
    display: block;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Center submenu items */
    gap: 12px;
    color: var(--color-light-gray);
    padding: 15px 20px; /* Slightly less padding than main items, but still generous */
    text-decoration: none;
    font-size: 1.25rem; /* Slightly smaller than main items, but clear */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-submenu-item:hover {
    background-color: rgba(0, 0, 0, 0.45); /* More pronounced hover for submenu */
    color: var(--color-teal);
}

.icon-teal {
    color: var(--color-teal) !important;
}

/* ---------------------------------- */
/* Hero Section (Homepage specific)   */
/* ---------------------------------- */
.hero-section {
    padding: 100px 0; /* More vertical padding */
    background: linear-gradient(135deg, var(--color-dark-teal), var(--color-teal)); /* Subtle gradient */
    color: var(--color-white);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem; /* Larger and more impactful */
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--color-white); /* Ensure title is white */
}

.hero-description {
    font-size: 1.35rem; /* Very readable */
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    opacity: 0.9; /* Slightly faded */
    color: rgba(255, 255, 255, 0.9); /* Ensure readable white on dark teal */
}

.hero-actions { /* Renamed from hero-buttons for consistency */
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px; /* Space between buttons */
}


/* ---------------------------------- */
/* Homepage Tool Categories           */
/* ---------------------------------- */
.tools-by-category {
    padding: 80px 0; /* Consistent with other sections */
    background-color: var(--color-light-gray);
}

.category-section {
    margin-bottom: 60px; /* Space between categories */
    padding-top: 20px;
}

.category-heading {
    font-size: 2.5rem; /* Prominent category headings */
    font-weight: 700;
    color: var(--color-dark-gray);
    margin-bottom: 20px; /* More space below heading */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-heading .icon-left {
    font-size: 1.1em;
    color: var(--color-primary); /* Category icon color */
}

.category-description {
    font-size: 1.15rem; /* Readable description for categories */
    color: var(--color-gray);
    text-align: center;
    max-width: 900px; /* Wider for category descriptions */
    margin: 0 auto 50px auto; /* More space below description */
    line-height: 1.7;
}

/* Tool Grid within Categories - Renamed from .tools-grid to .tool-grid for consistency with main CSS */
.category-section .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Consistent gap between tool cards */
    margin-top: 30px; /* Space between category description and tool cards */
}

.tool-card { /* This now applies to cards on the homepage too */
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-small);
    text-align: center;
    text-decoration: none;
    color: var(--color-dark-gray); /* Default text for card */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border: 1px solid var(--color-light-gray-2); /* Subtle border for definition */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 240px; /* Ensure consistent height for cards */
}

.tool-card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: var(--shadow-medium);
    border-color: var(--color-teal); /* Highlight border on hover */
}

.tool-icon-large { /* For homepage tool cards */
    font-size: 4em; /* Larger icons */
    margin-bottom: 20px; /* More space below icon */
    color: var(--color-teal);
}

.tool-title { /* For homepage tool cards */
    font-size: 1.6rem; /* Clear tool title */
    color: var(--color-dark-gray);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.tool-description { /* For homepage tool cards */
    font-size: 1rem; /* Readable description within card */
    color: var(--color-gray);
    line-height: 1.6;
    flex-grow: 1; /* Make description take up available space */
}

/* Features Section (on homepage) */
.features-section {
    background-color: var(--color-white);
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-medium);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: var(--color-light-gray-2); /* Subtle background for features */
    box-shadow: var(--shadow-small);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 4em; /* Larger icons for features */
    color: var(--color-primary); /* Primary color for features icon */
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.9rem; /* Clear feature title */
    color: var(--color-dark-gray);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-description {
    font-size: 1.05rem; /* Readable feature description */
    color: var(--color-gray);
    line-height: 1.6;
}

/* ---------------------------------- */
/* Tool Page Specific Layout (General Tool Template) */
/* ---------------------------------- */
/* This .tool-card applies to individual tool pages, distinct from homepage .tool-card */
.tool-page-card { /* Renamed to avoid conflict with homepage .tool-card */
    background-color: var(--color-white);
    padding: 40px; /* Slightly more padding for main tool card */
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-small);
    text-align: center;
    max-width: 900px; /* Max width for individual tool content */
    margin: 40px auto;
}

.tool-page-card .section-description {
    font-size: 1.05rem; /* Slightly larger text for main tool description */
    margin-bottom: 25px;
    max-width: none; /* Override default for specific tool card */
    color: var(--color-text); /* Ensure good readability */
}

.upload-area {
    background-color: var(--color-light-gray-2); /* Lighter background for upload area */
    border: 2px dashed var(--color-border);
    border-radius: var(--border-radius-medium);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-bottom: 30px;
}

.upload-area:hover,
.upload-area.drag-over {
    background-color: var(--color-gray); /* Darker on hover/drag */
    border-color: var(--color-teal);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.upload-icon {
    font-size: 3.5rem; /* Slightly larger icon */
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--color-dark-gray);
    font-weight: 500;
    line-height: 1.5;
}

.upload-text strong {
    color: var(--color-teal);
}

.hidden {
    display: none !important;
}

.file-name {
    margin-top: 15px;
    font-size: 1rem; /* Readable file name */
    color: var(--color-dark-gray);
}

.tool-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Global Message Area Styles (ADDED/UPDATED for better visibility) --- */
.message-area {
    padding: 12px 20px; /* Slightly more padding */
    border-radius: var(--border-radius-small);
    font-size: 1rem; /* Slightly larger font */
    font-weight: 500;
    text-align: center;
    margin-top: 25px; /* More margin from elements above */
    margin-bottom: 15px; /* Margin below for consistency */
    word-break: break-word; /* Prevent long messages from overflowing */
    display: flex; /* Use flex for icon & text alignment */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.message-area .fas {
    font-size: 1.3em; /* Icon size relative to text */
}

.message-error {
    background-color: #ffebee; /* Lighter red background */
    color: #c62828; /* Stronger red text */
    border: 1px solid #ef9a9a; /* Matching border */
}

.message-success {
    background-color: #e8f5e9; /* Light green */
    color: #2e7d32; /* Stronger green text */
    border: 1px solid #a5d6a7; /* Matching border */
}

.message-info {
    background-color: #e3f2fd; /* Light blue */
    color: #1565c0; /* Stronger blue text */
    border: 1px solid #90caf9; /* Matching border */
}
/* --- END Global Message Area Styles --- */

.output-area {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--border-radius-medium);
    text-align: center;
    font-size: 1.1rem;
    background-color: var(--color-light-gray-2); /* Added background for output */
    border: 1px solid var(--color-border);
}


/* Re-using .success-message and .error-message from tool-specific styles, ensuring consistency */
/* The general .message-area, .message-error, .message-success etc. above are preferred */
/* keeping these specific ones just in case they are used elsewhere */
/* Note: These are now redundant if .message-area is used everywhere, but kept for compatibility */
.success-message {
    color: var(--color-success);
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--color-success);
    padding: 15px;
    border-radius: var(--border-radius-small);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.error-message {
    color: var(--color-danger);
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--color-danger);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.error-message .fas,
.success-message .fas {
    font-size: 1.4rem;
}

/* SEO Content Section (Applies to tool pages) */
.seo-content-section {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-small);
    margin-top: 60px;
    text-align: left;
    max-width: 900px; /* Consistent max width */
    margin-left: auto;
    margin-right: auto;
}

.seo-content-section .section-title {
    font-size: 2.2rem; /* Consistent with h2 */
    margin-bottom: 20px;
    color: var(--color-teal);
    text-align: center;
}

.seo-content-section .section-subtitle {
    font-size: 1.6rem; /* Consistent with h3 */
    margin-top: 35px; /* More space above subtitle */
    margin-bottom: 15px;
    color: var(--color-heading);
}

.seo-content-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1em;
}

.seo-content-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
}

.seo-content-section ul li {
    margin-bottom: 10px; /* More space */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.seo-content-section ul li .fas {
    color: var(--color-teal);
    margin-top: 3px;
    flex-shrink: 0;
}

.seo-content-section ol {
    list-style: decimal;
    padding-left: 25px; /* Consistent indent */
    margin-bottom: 1em;
}

.seo-content-section ol li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.7;
}

.seo-content-section strong {
    color: var(--color-heading);
}

/* ---------------------------------- */
/* Contact Page Specific Styles       */
/* ---------------------------------- */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto;
    padding: 40px; /* Increased padding */
    background-color: var(--color-white);
    border-radius: var(--border-radius-large); /* Larger radius */
    box-shadow: var(--shadow-medium); /* Stronger shadow */
}

.contact-methods {
    text-align: center;
    margin-top: 60px; /* More margin */
    padding: 40px; /* Increased padding */
    background-color: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.contact-methods h3 {
    color: var(--color-dark-gray);
    margin-bottom: 20px; /* More space */
    font-size: 1.9rem; /* Larger heading */
}

.contact-methods p {
    font-size: 1.15rem; /* Larger text */
    margin-bottom: 15px;
    line-height: 1.6;
}

.email-address {
    font-weight: 700; /* Bolder */
    font-size: 1.25rem; /* Even larger */
    color: var(--color-dark-gray);
}

.email-address a {
    color: var(--color-teal);
    text-decoration: none;
}

.email-address a:hover {
    text-decoration: underline;
}

.social-links.large-icons {
    display: flex;
    justify-content: center;
    gap: 30px; /* More space between icons */
    margin-top: 30px; /* Space from text */
}

.social-links.large-icons .social-icon {
    font-size: 2.5rem; /* Larger icons */
    color: var(--color-teal);
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.social-links.large-icons .social-icon:hover {
    color: var(--color-primary); /* Use primary blue for hover for contrast */
    transform: translateY(-5px); /* More pronounced lift */
}

/* --- Under Development Page Specific --- */
.bounce-animation {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}
.large-text { /* For under-development page and homepage call to action */
    font-size: 1.25rem;
    line-height: 1.7;
}

/* ---------------------------------- */
/* Footer                             */
/* ---------------------------------- */
.site-footer {
    background-color: var(--color-darkest-gray);
    color: var(--color-white);
    padding-top: 60px; /* More padding top */
    font-size: 0.95rem;
    margin-top: auto; /* Pushes footer to the bottom */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more prominent border */
}

.footer-col {
    padding: 0 15px;
}

.footer-brand-name {
    font-size: 2rem; /* Consistent with h2 */
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-white);
}

.footer-brand-name span {
    color: var(--color-teal);
}

.footer-text {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-links { /* General social links in footer */
    display: flex;
    gap: 15px;
}
.social-links a {
    color: var(--color-white);
    font-size: 1.4rem; /* Slightly larger */
    transition: color 0.2s ease;
    text-decoration: none; /* No underline for footer social icons */
}
.social-links a:hover {
    color: var(--color-teal);
}

.footer-heading {
    font-size: 1.4rem; /* Consistent with h4 */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px; /* Position slightly lower */
    width: 50px; /* Longer underline */
    height: 3px;
    background-color: var(--color-teal);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-links a:hover {
    color: var(--color-teal);
    text-decoration: underline;
}

.footer-bottom {
    background-color: var(--color-black); /* Darkest for bottom bar */
    padding: 20px 0;
    text-align: center;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ---------------------------------- */
/* Responsive Design (Media Queries)  */
/* ---------------------------------- */
@media (max-width: 992px) {
    .navbar-container {
        padding: 0 20px;
    }

    .main-nav {
        display: none; /* Hide main nav on smaller screens */
    }

    .mobile-nav-toggle {
        display: block; /* Show mobile menu button */
    }

    .brand-name {
        font-size: 1.8rem;
    }
    
    .menu-button {
        font-size: 1.5rem;
    }
    .menu-icon {
        width: 28px;
        height: 28px;
    }

    /* Adjust top of mobile menu if navbar height changes */
    .mobile-menu-panel {
        padding-top: 65px; /* Adjust based on actual mobile navbar height */
    }

    .section-padding {
        padding: 50px 0; /* Reduced padding for smaller screens */
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .hero-actions { /* Consistent naming */
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .hero-actions .btn {
        width: 80%; /* Make buttons wider */
        max-width: 350px;
    }

    .category-heading {
        font-size: 2rem;
        flex-direction: column; /* Stack icon and text for category heading */
        gap: 5px;
    }

    .category-heading .icon-left {
        margin-right: 0;
    }

    /* General tool grid for homepage and other listings */
    .tool-grid, .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Allow slightly smaller cards */
        gap: 20px;
    }

    .tool-card {
        padding: 25px;
        min-height: 220px;
    }

    .tool-icon-large {
        font-size: 3.5em;
        margin-bottom: 15px;
    }

    .tool-title {
        font-size: 1.4rem;
    }

    .tool-description {
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 25px;
    }

    .feature-icon {
        font-size: 3.5em;
    }

    .feature-title {
        font-size: 1.7rem;
    }
    .feature-description {
        font-size: 1rem;
    }

    /* Tool page specific card */
    .tool-page-card {
        margin: 20px auto;
        padding: 30px;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-text {
        font-size: 1rem;
    }

    .tool-actions {
        flex-direction: column; /* Stack buttons on small screens */
        gap: 10px;
    }

    /* Contact page specific */
    .contact-form {
        padding: 30px;
    }

    .contact-methods {
        padding: 30px;
        margin-top: 40px;
    }
    .contact-methods h3 {
        font-size: 1.6rem;
    }
    .contact-methods p {
        font-size: 1.05rem;
    }
    .email-address {
        font-size: 1.15rem;
    }

    /* Footer */
    .site-footer {
        padding-top: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer columns vertically */
        text-align: center;
        gap: 30px;
    }
    .footer-col {
        padding: 0; /* Remove horizontal padding for single column */
    }
    .footer-heading {
        display: inline-block; /* Keep heading centered but allow underline to span width */
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%); /* Center underline */
    }
    .social-links {
        justify-content: center; /* Center social icons */
    }
    .footer-links {
        padding-left: 0; /* Remove default padding for centered list */
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .btn-lg {
        padding: 15px 30px;
        font-size: 1.15rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: none;
    }

    .section-title {
        font-size: 1.8rem;
    }
    .section-description {
        font-size: 0.95rem;
    }

    .tool-grid, .features-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }

    .tool-card, .feature-item {
        padding: 20px;
    }

    .tool-icon-large, .feature-icon {
        font-size: 3em;
    }
    .tool-title, .feature-title {
        font-size: 1.3rem;
    }

    .tool-page-card {
        padding: 20px;
    }
    .upload-area {
        padding: 25px 10px;
    }
    .upload-icon {
        font-size: 2.5rem;
    }
    .upload-text {
        font-size: 0.9rem;
    }
    .file-name {
        font-size: 0.85rem;
    }

    .seo-content-section {
        padding: 30px 20px;
    }
    .seo-content-section .section-title {
        font-size: 1.8rem;
    }
    .seo-content-section .section-subtitle {
        font-size: 1.4rem;
    }
}