* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}
body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}
body,
button,
input,
textarea {
    font-family: 'Inter', sans-serif;
}
/* Left side (company name) */
.nav-left .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Right side (links) */
.nav-right {
    display: flex;
    gap: 35px;
}

.nav-right a {
    color: #1f2937;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-right a:hover {
    color: #0d47a1;
    font-weight: 600;
}

/* Left side (company name) */
.nav-left .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Right side (links) */
.nav-right {
    display: flex;
    gap: 35px;
}

.nav-right a {
    color: #1f2937;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-right a:hover {
    color: #0d47a1;
    font-weight: 600;
}
.hamburger{
    display:none;
    flex-direction:column;
    cursor:pointer;
    gap:5px;
}

.hamburger span{
    width:25px;
    height:3px;
    background:#333;
    transition:0.3s;
}

/* ===== MOBILE ===== */

@media (max-width:755px){
.hamburger{
    display:flex;
    order:1;
}
.nav-right{
    position:fixed;
    top:0;
    right:-260px;
    width:260px;
    height:100vh;
    background:white;

    display:flex;
    flex-direction:column;

    padding-top:80px;
    padding-left:30px;
    gap:20px;

    transition:left 0.35s ease;
    box-shadow:2px 0 10px rgba(0,0,0,0.15);
}

/* open menu */

.nav-right.active{
    right: 0;
    margin-top: 18%;
}

.hamburger{
    display:flex;
}

}

/* Responsive Navbar */


.tool-nav {
    display: flex;
    gap: 15px;
    padding: 12px 20px;
    background: #f4f6f8;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tool-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.tool-nav a:hover,
.tool-nav a.active {
    background: #007bff;
    color: #fff;
}

.tool-form {
    margin: 20px 0;
}
.section {
    margin-top: 50px;
    padding: 70px 8%;
}

/* Main Heading (H1) */
.section h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

/* Intro Text */
.section > p {
    font-size: 1.15rem;
    color: #4b5563;
    max-width: 850px;
    margin: 0 auto 35px auto;
}

/* =========================
   FORM STYLING
   ========================= */

.tool-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.tool-form input[type="file"] {
    width: 1056px;
    max-width: 1050px;
    padding: 29px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.3s ease;
}

.tool-form input[type="file"]:hover {
    border-color: #0d47a1;
}

.tool-form button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #0d47a1, #2563eb);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.35);
    transition: 0.3s ease;
}

.tool-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(13, 71, 161, 0.45);
}

/* =========================
   OUTPUT AREA
   ========================= */

.section h2 {
    margin-top: 50px;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
}

textarea {
    width: 100%;
    max-width: 900px;
    min-height: 260px;
    padding: 18px;
    margin-top: 18px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background: #f9fafb;
    transition: 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #0d47a1;
    background: #ffffff;
}

/* =========================
   SEO CONTENT SECTION
   ========================= */

.seo-content {
    margin-top: 70px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seo-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.seo-content p {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 22px;
    line-height: 1.8;
}

.seo-content ul,
.seo-content ol {
    margin-left: 22px;
    margin-bottom: 28px;
}

.seo-content li {
    font-size: 1.02rem;
    color: #374151;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 768px) {

    .tool-nav {
        padding: 12px 4%;
    }

    .section {
        padding: 55px 6%;
    }

    .section h1 {
        font-size: 2.1rem;
    }

    .section > p {
        font-size: 1.05rem;
    }

    textarea {
        max-width: 100%;
    }
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure headings & text stay aligned */
.section h1,
.section h2,
.section p {
    text-align: center;
}

/* Fix textarea alignment */
textarea {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* =========================
   SEO CONTENT ALIGNMENT FIX
   ========================= */

.seo-content {
    background: #ffffff;
    padding: 45px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Headings centered but readable */
.seo-content h2 {
    text-align: center;
}

/* Paragraphs aligned for readability */
.seo-content p {
    text-align: justify;
}

/* Lists aligned cleanly */
.seo-content ul,
.seo-content ol {
    padding-left: 25px;
}

.seo-content li {
    text-align: left;
}

/* =========================
   FOOTER ALIGNMENT FIX
   ========================= */
footer {
  background: #0f172a;
  color: #fff;
  padding: 20px 40px;
  font-size: 16px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Right side: icons only */
.footer-right {
  display: flex;
  gap: 15px;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.3s;
}

/* Colorful background */
.footer-icon.email-icon {
  background: #0072c6; /* blue */
}

.footer-icon.whatsapp-icon {
  background: #25D366; /* green */
}

/* Hover effect */
.footer-icon:hover {
  transform: scale(1.1);
}

/* Responsive: stack on mobile */
@media (max-width:755px){
  .footer-container{
    align-items: anchor-center;
    gap: 2px;
  }
  .footer-right {
  display: flex;
  gap: 15px;
}
footer {
    background: #0f172a;
    color: #fff;
    padding: 16px 17px;
    font-size: 8px;
}
}

/* =========================
   MOBILE POLISH
   ========================= */

@media (max-width: 768px) {

    .seo-content {
        padding: 30px 22px;
    }

    .seo-content p {
        text-align: left;
    }

    .section h1 {
        line-height: 1.25;
    }
}
/* ===== Form Styling ===== */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    margin: 20px 0;
}

/* File Input */
.tool-form input[type="file"] {
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Width & Height Wrapper for inline layout */
.tool-form .size-inputs {
    display: flex;
    gap: 10px;
}

/* Number Inputs */
.tool-form input[type="number"] {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    flex: 1;
}

.tool-form input[type="number"]::placeholder {
    color: #888;
}

/* Submit Button */
.tool-form button {
    background-color: #0d47a1;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-form button:hover {
    background-color: #0b3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== Responsive for Mobile ===== */
@media (max-width: 755px) {
    .tool-form {
        max-width: 100%;
        gap: 12px;
    }

    /* Stack width & height on small screens */
    .tool-form .size-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .tool-form button {
        width: 100%;
    }
}


/* #crop css */

.crop-layout{
display:flex;
margin-top:20px;
gap:20px;
}

.image-sidebar{
width:120px;

overflow-y:auto;
border:1px solid #ddd;
padding:5px;
}

.image-sidebar img{
width:100%;
margin-bottom:10px;
cursor:pointer;
border:2px solid transparent;
}

.image-sidebar img.active{
border:2px solid #007bff;
}

.image-editor{
flex:1;
max-height:500px;
}

.image-editor img{
max-width:100%;
}
.crop-layout{
display:flex;
gap:20px;
margin-top:20px;
}

.image-sidebar{
width:120px;
height:420px;
overflow-y:auto;
border:1px solid #ddd;
padding:5px;
}

.image-sidebar img{
width:100%;
margin-bottom:10px;
cursor:pointer;
border:2px solid transparent;
border-radius:4px;
}

.image-sidebar img.active{
border:2px solid #007bff;
}

.image-editor{
flex:1;
max-height:520px;
}

.image-editor img{
max-width:100%;
display:block;
}

.editor-tools{
margin-bottom:10px;
display:flex;
gap:10px;
flex-wrap:wrap;
}

.editor-tools button{
padding:6px 12px;
border:none;
background:#007bff;
color:white;
border-radius:4px;
cursor:pointer;
}

.editor-tools input{
width:120px;
}

/* Mobile */

@media (max-width:768px){

.crop-layout{
flex-direction:column;
}

.image-sidebar{
display:flex;
width:100%;
height:auto;
overflow-x:auto;
overflow-y:hidden;
}

.image-sidebar img{
width:80px;
margin-right:10px;
}

.image-editor{
width:100%;
}

}
.crop-layout{
display:flex;
gap:20px;
margin-top:20px;
flex-wrap:wrap;
}

/* Sidebar */

.image-sidebar{
width:110px;
max-height:500px;
overflow-y:auto;
display:flex;
flex-direction:column;
gap:10px;
}

.image-sidebar img{
width:100%;
cursor:pointer;
border:2px solid transparent;
border-radius:6px;
}

.image-sidebar img.active{
border:2px solid #007bff;
}

/* Editor */

.image-editor{
flex:1;
min-width:250px;
}

/* Cropper container */

.image-editor img{
max-width:100%;
max-height:70vh;
display:block;
}

/* Tools */

.editor-tools{
margin-bottom:10px;
display:flex;
gap:10px;
flex-wrap:wrap;
}

/* Mobile */

@media (max-width:768px){

.crop-layout{
flex-direction:column;
}

.image-sidebar{
flex-direction:row;
width:100%;
max-height:none;
overflow-x:auto;
}

.image-sidebar img{
width:70px;
}

}

/* Cropper wrapper */

.cropper-container-wrapper{
width:100%;
height:420px;
max-height:70vh;
background:#f5f5f5;
border-radius:8px;
overflow:hidden;
display:flex;
align-items:center;
justify-content:center;
position:relative;
}

/* Image inside cropper */

#mainImage{
max-width:100%;
max-height:100%;
display:block;
}

/* Prevent cropper overflow */

.cropper-container{
max-width:100% !important;
max-height:100% !important;
}

/* Mobile */

@media (max-width:768px){

.cropper-container-wrapper{
height:320px;
}

}