/* --- Reset & Root Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d2333f;
    --primary-dark: #b02a35;
    --secondary: #1a6dff;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* --- Body & Basic Layout --- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7fa;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Navigation --- */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo i { font-size: 2.2rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-buttons { display: flex; gap: 15px; }

/* --- Buttons --- */
.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}


/* --- Landing Page: Hero Section --- */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* --- General Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
}

/* --- Landing Page: Tools Section --- */
.tools-section { padding: 80px 0; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
}

.tool-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(210, 51, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
}
.tool-icon .far { font-weight: 400; } 

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.tool-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* --- Landing Page: Features Section --- */
.features-section {
    padding: 80px 0;
    background-color: var(--light);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature { display: flex; gap: 20px; }

.feature-icon {
    min-width: 60px;
    height: 60px;
    background-color: rgba(26, 109, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- Tool Page: Content --- */
.tool-page {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-hero {
    padding: 40px 0 20px;
    text-align: center;
}

.tool-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.tool-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tool-hero p {
    font-size: 1.1rem;
    color: var(--gray);
}

.tool-container-wrapper {
    display: flex;
    gap: 30px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tool-main {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.tool-sidebar {
    width: 320px;
    min-width: 300px;
}

.upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
}

.upload-area.active {
    border-color: var(--primary);
    background-color: rgba(210, 51, 63, 0.05);
}

.upload-area i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-area h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.upload-area p {
    color: var(--gray);
    margin-bottom: 20px;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.tool-options { margin-top: 30px; }

.option-group { margin-bottom: 25px; }

.option-group h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.option-group h3 i { color: var(--primary); }

select, input[type="text"], input[type="url"], input[type="password"], input[type="file"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tool-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.tool-actions .btn { flex: 1; }

.info-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.steps { display: flex; flex-direction: column; gap: 20px; }

.step {
    text-align: center;
    padding: 15px;
    background-color: rgba(210, 51, 63, 0.05);
    border-radius: var(--border-radius);
}

.step-number {
    width: 35px;
    height: 35px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.step h4 { margin-bottom: 5px; }
.step p { font-size: 0.9rem; color: var(--gray); }

/* --- Footer --- */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}
.footer-bottom a {
    color: white;
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 20px; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .tools-section, .features-section { padding: 60px 0; }
    .tool-container-wrapper { flex-direction: column; }
    .tool-sidebar { width: 100%; }
}

@media (max-width: 576px) {
    .tool-hero h1 { font-size: 1.8rem; }
    .tool-tabs { justify-content: flex-start; }
}