/* Sheetzer CSS - CloudConvert inspired design with orange branding */

:root {
	--primary-color: #ff9f43;
	--primary-dark: #e8831a;
	--primary-light: #ffb366;
	--secondary-color: #202020;
	--dark-bg: #2e2e2e;
	--light-bg: #f9f9f9;
	--text-dark: #2c3e50;
	--text-light: #6c757d;
	--success: #28a745;
	--info: #17a2b8;
	--warning: #ffc107;
	--danger: #dc3545;
	--white: #ffffff;
	--border-color: #e0e0e0;
}

/* Reset and base styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	color: var(--text-dark);
	background-color: var(--light-bg);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Navigation */
.header-navbar {
	background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.navbar-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--white) !important;
}

.brand-logo {
	width: 40px;
	height: 40px;
	margin-right: 10px;
}

.brand-text {
	font-size: 1.5rem;
	font-weight: 300;
	margin: 0;
	color: var(--white);
}

.brand-text strong {
	font-weight: 700;
}

.navbar-nav {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.nav-item {
	margin: 0 0.5rem;
}

.nav-link {
	color: var(--white) !important;
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.nav-link:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--primary-color) !important;
}

.navbar-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.navbar-container {
	width: 100%;
}

.navbar-collapse {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.float-left {
	margin-right: auto;
}

.float-right {
	margin-left: auto;
}

/* Hero Section */
.bg-gradient-navbar {
	background-image: linear-gradient(45deg, #202020, #3a3a3a);
	color: var(--white);
}

.converter-header {
	padding: 4em;
}

.auth-page .brand-text {
	color: #2d3946;
	font-size: 2em;
	font-weight: 800;
}

.converter-header h1 {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.converter-header p {
	font-size: 1rem;
	opacity: 0.9;
	line-height: 1.7;
}

.selector h2 {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
}

.selector span {
	font-size: 1.2rem;
	font-weight: 500;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1.5;
}

.btn-primary {
	background-color: #ff4343;
    color: var(--white);
    border: 2px solid #ff4343;
}

.btn-primary:hover {
	background-color: #b93030;
	border-color: #b93030;
	transform: translateY(-1px);
}

.btn-outline-primary {
	background-color: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
	background-color: var(--primary-color);
	color: var(--white);
}

.btn-outline-secondary {
	background-color: #00000038;
	color: var(--white);
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

.btn-block {
	width: 100%;
	display: block;
}

/* Forms */
.upload-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;   /* wider on desktop */
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .upload-form {
        max-width: 700px; /* medium screens */
    }
}

@media (max-width: 576px) {
    .upload-form {
        max-width: 100%;  /* full width on phones */
        margin: 1rem;
        padding: 1.5rem;
    }
}


.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: white;
}

.form-control {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid var(--border-color);
	border-radius: 6px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.1);
}

/* Cards */
.card {
	background: var(--white);
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
	padding: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.card-body {
	padding: 1.5rem;
}

.card-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.card-title i {
	font-size: 1.5rem;
}

/* Examples Section */
.examples-section {
	padding: 4rem 0;
	background: var(--white);
	margin: 2rem 0;
	border-radius: 12px;
}

.example-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.example-card:hover {
	transform: scale(1.02);
}

.before-after-container {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.before-image,
.after-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.after-image {
	opacity: 0;
}

.before-after-container:hover .after-image {
	opacity: 1;
}

.before-after-container:hover .before-image {
	opacity: 0;
}

.overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	padding: 1rem;
	color: var(--white);
}

.style-label {
	font-weight: 600;
	font-size: 0.9rem;
}

/* Pricing Cards */
.pricing-section {
	padding: 4rem 0;
}

.pricing-card {
	position: relative;
	height: 100%;
}

.pricing-card.popular {
	transform: scale(1.05);
	border: 3px solid var(--primary-color);
}

.popular-badge {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary-color);
	color: var(--white);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
}

.pricing-card .card-header h2 {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0.5rem 0;
}

.pricing-card .card-header h4 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.pricing-card ul li {
	padding: 0.5rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Alerts */
.alert {
	padding: 1rem;
	border-radius: 8px;
	margin: 1rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.alert-info {
	background-color: rgba(23, 162, 184, 0.1);
	border: 1px solid rgba(23, 162, 184, 0.3);
	color: var(--info);
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.text-primary {
	color: var(--primary-color) !important;
}

.text-success {
	color: var(--success) !important;
}

.text-muted {
	color: var(--text-light) !important;
}

.text-bold-600 {
	font-weight: 600;
}

.d-none {
	display: none !important;
}

.d-flex {
	display: flex !important;
}

.justify-content-center {
	justify-content: center !important;
}

.align-items-center {
	align-items: center !important;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.mb-1 {
	margin-bottom: 0.25rem !important;
}

.mb-2 {
	margin-bottom: 0.5rem !important;
}

.mb-3 {
	margin-bottom: 1rem !important;
}

.mb-4 {
	margin-bottom: 1.5rem !important;
}

.mt-1 {
	margin-top: 0.25rem !important;
}

.mt-2 {
	margin-top: 0.5rem !important;
}

.mt-3 {
	margin-top: 1rem !important;
}

.mr-1 {
	margin-right: 0.25rem !important;
}

.mr-auto {
	margin-right: auto !important;
}

/* Grid System */
.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
	justify-content: center;
}

.col-12 {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 0 15px;
}

.col-6 {
	flex: 0 0 50%;
	max-width: 50%;
	padding: 0 15px;
}

.col-md-3 {
	flex: 0 0 25%;
	max-width: 25%;
	padding: 0 15px;
}

.col-md-4 {
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
	padding: 0 15px;
}

.col-md-6 {
	flex: 0 0 50%;
	max-width: 50%;
	padding: 0 15px;
}

.col-md-auto {
	flex: 0 0 auto;
	width: auto;
	padding: 0 15px;
}

/* Footer */
.footer {
	background: var(--white);
	padding: 2rem 0;
	border-top: 1px solid var(--border-color);
	margin-top: 4rem;
}

.footer h6 {
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.footer ul {
	list-style: none;
	padding: 0;
}

.footer ul li {
	margin-bottom: 0.5rem;
}

.footer a {
	color: var(--text-light);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer a:hover {
	color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
	.navbar-collapse {
		flex-direction: column;
		gap: 1rem;
	}

	.converter-header {
		padding: 100px 0 40px;
		text-align: center;
	}

	.converter-header h1 {
		font-size: 2rem;
	}

	.selector h2 {
		flex-direction: column;
		gap: 0.5rem;
	}

	.col-md-3,
	.col-md-4,
	.col-md-6 {
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 1rem;
	}

	.upload-form {
		margin: 1rem;
		padding: 1.5rem;
	}

	.pricing-card.popular {
		transform: none;
		margin-bottom: 2rem;
	}
}

@media (max-width: 576px) {
	.container {
		padding: 0 10px;
	}

	.btn-lg {
		padding: 0.75rem 1.5rem;
		font-size: 1rem;
	}

	.card-body {
		padding: 1rem;
	}

	.examples-section {
		padding: 2rem 0;
	}
}

/* Additional CloudConvert-inspired elements */
.h-100 {
	height: 100% !important;
}

.lead {
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.6;
	color: var(--text-light);
}

.list-unstyled {
	list-style: none;
	padding-left: 0;
}

.font-medium-4 {
	font-size: 1.1rem;
}

/* Format dropdown styling */
.format-dropdown .btn {
	min-width: 150px;
	text-align: left;
}


.dynamic-alert {
	background-color: white;
}


/* About Section */
.about {
	display: flex;
	gap: 22px;
	margin-top: 28px;
	align-items: stretch;
}

.about .left {
	flex: 1;
}

.about .right {
	width: 380px;
}

/* Responsive Layout Fixes */
@media (max-width: 900px) {
	.hero {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.grid {
		grid-template-columns: 1fr;
	}

	.about {
		flex-direction: column;
	}

	.hero-cta {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-right {
		order: -1;
	}
}

/* Before/After Compare */

.example-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.75rem 0;
}

.compare-wrap, .example-block{
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 30px auto;
	aspect-ratio: 2/1.6;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
	
	margin-bottom: 2rem;
    text-align: center;
}

.compare-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	pointer-events: none;
}

.compare-wrap .after {
	clip-path: inset(0 50% 0 0);
}

.compare-wrap .slider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
	cursor: ew-resize;
	transition: background 0.2s;
}

.compare-wrap .slider:hover {
	background: rgba(255, 255, 255, 1);
}

.compare-wrap .handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	color: #444;
	cursor: ew-resize;
	user-select: none;
}

/* Hero Responsiveness */
@media (max-width: 768px) {
	.converter-header .row {
		flex-direction: column;
		text-align: center;
	}

	.converter-header h1 {
		font-size: 28px;
	}

	.converter-header p {
		font-size: 16px;
	}
}

/* Upload Form Responsiveness */
@media (max-width: 576px) {

	.upload-form .btn,
	.upload-form .form-control {
		width: 100%;
	}
}

/* Pricing Cards Responsiveness */
@media (max-width: 992px) {
	#pricing .col-md-3 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (max-width: 576px) {
	#pricing .col-md-3 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* Compare on Phones */
@media (max-width: 768px) {
	.compare-wrap {
		max-width: 100%;
		aspect-ratio: 4/3;
	}

	.compare-wrap .handle {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}

/* Footer Responsiveness */
@media (max-width: 768px) {
	footer .container {
		flex-direction: column;
		text-align: center;
	}

	footer .container div {
		margin-bottom: 20px;
	}
}

/* --- Desktop Navbar --- */
.navbar-container {
	display: flex !important;
	/* always show desktop nav */
	justify-content: space-between;
	align-items: center;
}

/* --- Mobile Hamburger --- */
.mobile-toggle {
	display: none;
	margin-left: auto;
	/* push it to the right edge */
}

@media (max-width: 768px) {
	.mobile-toggle {
		display: block;
	}

	.navbar-container {
		display: none !important;
	}

	/* hide desktop nav on small screens */
}

/* --- Mobile Slide-In Navbar --- */
#navbar-mobile {
	position: fixed;
	top: 0;
	right: -260px;
	/* hidden off screen */
	width: 260px;
	height: 100%;
	background: #202020;
	display: flex;
	flex-direction: column;
	padding-top: 60px;
	transition: right 0.3s ease;
	z-index: 9999;
}

/* remove list dots */
#navbar-mobile ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#navbar-mobile.show {
	right: 0;
}

#navbar-mobile .nav-item {
	margin: 15px 0;
	text-align: left;
	padding-left: 20px;
}

#navbar-mobile .nav-link {
	color: #fff;
	font-size: 18px;
	text-decoration: none;
	display: block;
}


/* Hamburger always far right */
.mobile-toggle {
	display: none;
	margin-left: auto;
	/* pushes it all the way to the right */
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
	.mobile-toggle {
		display: block;
	}

	.navbar-container {
		display: none !important;
	}

	/* hide desktop nav */
}

/* Slide-in Mobile Menu */
#navbar-mobile {
	position: fixed;
	top: 0;
	right: -260px;
	/* hidden by default */
	width: 260px;
	height: 100%;
	background: #202020;
	display: flex;
	flex-direction: column;
	padding-top: 60px;
	transition: right 0.3s ease;
	z-index: 10001;
}

#navbar-mobile ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#navbar-mobile .nav-item {
	margin: 15px 0;
	padding-left: 20px;
}

#navbar-mobile .nav-link {
	color: #fff;
	font-size: 18px;
	text-decoration: none;
	display: block;
}

#navbar-mobile.show {
	right: 0;
}

/* Overlay behind the slide-in */
#menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	display: none;
}

#menu-overlay.show {
	display: block;
}

.col-md-6{
    margin-top: 2em;
}

.preview-container{
    background: #ffffff17 !important;
    color: white;
}

#cropControls{
    color:white;
}
