/* 
    File: style.css
    Project: Online Tools Website
    Purpose: Main stylesheet for the application.
*/

:root {
    --primary-color: #007BFF; /* A vibrant, modern blue */
    --primary-hover: #0056b3; /* A darker shade for hover */
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-light); 
    color: var(--text-dark);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background-white); /* Ensure it has a background */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-white);
}

.nav-logo a {
    font-weight: 800; /* Bolder for the new font */
    font-size: 1.75rem;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo a:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.75rem; /* Increased gap */
}

/* Hide feature-flagged links by default to prevent flash */
.nav-links > li {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-signin {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-signin:hover {
    color: var(--text-dark);
}

.nav-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-hover);
}

main {
    /* No top padding needed if header is not sticky, or handled differently */
}

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 4rem;
    background-color: var(--background-white);
    max-width: 1300px;
    margin: 4rem auto;
    border-radius: 24px;
    overflow: hidden; /* Important for containing ornaments */
    position: relative;
}

.hero-content {
    flex: 1.2;
    z-index: 20;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 0 2rem 0;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-button-primary, .hero-button-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-button-primary {
    background-color: var(--primary-color);
    color: white;
}
.hero-button-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-button-secondary {
    background-color: var(--background-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}
.hero-button-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.hero-placeholder {
    flex: 1;
    position: relative;
    min-height: 580px;
}

.hero-main-image {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: auto;
    z-index: 10;
}

.hero-ornament {
    position: absolute;
    transition: transform 0.3s ease-out;
}

#ornament-1 { /* Large gradient blob */
    width: 160%;
    top: 45%;
    left: 48%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0.8;
}

#ornament-2 { /* Purple circle */
    width: 15%;
    bottom: 15%;
    left: 65%;
    z-index: 12;
    opacity: 0.6;
}

#ornament-3 { /* Squiggle */
    width: 90px;
    top: 20%;
    right: 0%;
    z-index: 15; /* On top of everything */
    transform: rotate(-10deg);
}

.tools-section {
    padding: 4rem 2rem;
    background-color: var(--background-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Make cards narrower */
    column-gap: 1.5rem; /* Horizontal gap */
    row-gap: 4rem;    /* Final increased vertical gap */
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background-color: var(--background-white);
    border-radius: 12px;
    padding: 1.5rem; /* Reduce padding */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease; /* Animate all properties on the card itself */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%; /* Make card fill the grid cell height */
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.tool-card-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: var(--text-secondary);
}

.tool-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow this section to grow and fill space */
}

.tool-card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tool-card-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    /* Limit text to 3 lines and add ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-section {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--background-white);
    border-top: 1px solid var(--border-color);
}

.download-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: var(--text-dark);
}

.download-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 0 auto 2rem auto;
    max-width: 600px;
    line-height: 1.6;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 3rem auto;
}

.logo-placeholder {
    font-size: 1.1rem;
    font-weight: 500;
    color: #adb5bd;
    /* In a real scenario, this would be an <img> tag */
}

.logo-credit {
    font-size: 0.9rem;
    color: #ced4da;
}

.logo-credit a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-credit a:hover {
    color: var(--text-dark);
}

.work-smarter-section {
    text-align: center;
    padding: 6rem 2rem;
    background-color: var(--primary-color);
    color: var(--background-white);
}

.work-smarter-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: var(--background-white);
}

.work-smarter-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2.5rem auto;
    max-width: 500px;
    line-height: 1.6;
}

/* Make the button in this section pop */
.work-smarter-section .nav-button {
    background-color: var(--background-white);
    color: var(--primary-color);
    transform: scale(1.1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.work-smarter-section .nav-button:hover {
    background-color: #f1f3f5;
    color: var(--primary-hover);
    transform: scale(1.15);
}


.footer {
    background-color: #343a40; /* Dark footer */
    color: #adb5bd;
    padding: 4rem 2rem;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-column {
    flex: 1;
}

.footer-column.footer-brand {
    flex: 2;
}

.footer-column h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--background-white);
    margin-top: 0;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--background-white);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.footer-column p {
    margin-top: 0;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.85rem;
}

.footer-column ul a {
    text-decoration: none;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-status span:first-child {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745; /* Green status color */
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    text-decoration: none;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-dark);
}

a.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 12px; /* Match the card's radius for proper hover area */
}

a.tool-card-link:hover .tool-card {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); /* A slightly more visible shadow */
    border-color: #a0aec0;
    background-color: #e9efff;
}

/* This is the key fix: ensure no underline on children */
.tool-card-link h3,
.tool-card-link p {
    text-decoration: none !important;
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border: 1px solid #d9dce0;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s;
}

.language-dropdown-toggle:hover {
    background-color: #e4e6e9;
}

.translate-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: #4a5568;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.2s;
}

.language-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 100;
    border: 1px solid #e4e6e9;
}

.language-dropdown.open .language-dropdown-menu {
    display: block;
}

.language-option {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f0f2f5;
}

.language-option.active {
    background-color: #e9efff;
    font-weight: 700;
}

/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Hero Section */
.hero-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-color: #f8f9fa; /* A very light grey, almost white */
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 4rem;
    background-color: var(--background-white);
    max-width: 1300px;
    margin: 0 auto 4rem auto;
    border-radius: 24px;
    overflow: hidden; /* Important for containing ornaments */
    position: relative;
}

.hero-content {
    flex: 1.2;
    z-index: 20;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 0 2rem 0;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-button-primary, .hero-button-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-button-primary {
    background-color: var(--primary-color);
    color: white;
}
.hero-button-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-button-secondary {
    background-color: var(--background-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}
.hero-button-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.hero-placeholder {
    flex: 1;
    position: relative;
    min-height: 580px;
}

.hero-main-image {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: auto;
    z-index: 10;
}

.hero-ornament {
    position: absolute;
    transition: transform 0.3s ease-out;
}

#ornament-1 { /* Large gradient blob */
    width: 160%;
    top: 45%;
    left: 48%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0.8;
}

#ornament-2 { /* Purple circle */
    width: 15%;
    bottom: 15%;
    left: 65%;
    z-index: 12;
    opacity: 0.6;
}

#ornament-3 { /* Squiggle */
    width: 90px;
    top: 20%;
    right: 0%;
    z-index: 15; /* On top of everything */
    transform: rotate(-10deg);
} 