/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
    padding-top: 70px;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-menu li a:not(.social-icons a):hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.social-icons a {
    font-size: 1.1rem;
    margin: 0 0.3rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.15);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px auto;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        transition: 0.3s;
        gap: 1rem;
    }

    .navbar-menu.active {
        right: 0;
    }

    .social-icons {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tool-container h1 {
    color: #007bff;
    margin-bottom: 20px;
    margin-top: 50px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 20px;
}

.upload-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

input[type="file"] {
    padding: 10px;
    border: 2px dashed #007bff;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="file"]:hover {
    background-color: #e6f0ff;
}

/* Preview Section */
.preview-section {
    margin: 10px 0;
}

.preview {
    max-width: 50%;
    height: auto;
    border: 1px solid hsl(0, 83%, 49%);
    border-radius: 5px;
}

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
    gap: 5px;
}

.controls button {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.controls button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Background Color Section */
.background-color-section {
    margin: 10px 0;
    text-align: middle;
}

.background-color-section h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.background-color-section label {
    font-weight: bold;
    margin-right: 10px;
}

.background-color-section input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.background-color-section button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.background-color-section button:hover {
    background-color: #218838;
}

/* Scale-wise Cutting */
.scale-cutting {
    margin: 10px 0;
    text-align: middle;
}

.scale-cutting h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.scale-cutting label {
    font-weight: bold;
    margin-right: 10px;
}

.scale-cutting input,
.scale-cutting select {
    margin: 0 10px 10px 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80px;
}

.scale-cutting button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.scale-cutting button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Filters */
.filters {
    margin: 10px 0;
    text-align: middle;
}

.filters h3 {
    color: #007bff;
    margin-bottom: 5px;
}

.filters label {
    font-weight: bold;
    margin-right: 10px;
}

.filters input[type="range"] {
    width: 200px;
    margin-right: 10px;
}

/* Quality Section */
.quality-section {
    margin: 20px 0;
    text-align: middle;
}

.quality-section h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.quality-section label {
    font-weight: bold;
    margin-right: 10px;
}

.quality-section input[type="range"] {
    width: 100px;
    margin-right: 10px;
}

.quality-section span {
    font-weight: bold;
}

/* Output Section */
.output-section {
    margin-top: 10px;
    text-align: center;
}

.output-section canvas {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

.download-options {
    margin-top: 10px;
}

.download-btn {
    padding: 8px 16px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    font-size: 0.75rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #218838;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Content Container */
.content-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Box */
.content-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.content-box h2 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-box p {
    font-size: 1rem;
    color: #555;
}

/* Footer */
.footer {
    background-color: #007bff;
    color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.footer-logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffdd57;
}

.about-us p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #218838;
}

.contact-info {
    margin-top: 15px;
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffdd57;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #ffdd57;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        max-width: 400px;
    }

    .social-icons {
        justify-content: center;
    }
}
/* Content Box Styling */
.content-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.content-box h2 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}
/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 20px;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
  }
  
  h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
  }
  
  ol {
    padding-left: 20px;
  }
  
  li {
    margin-bottom: 10px;
  }
  
  /* Step Styles */
  .step {
    background: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  .step h3 {
    margin-top: 0;
    color: #3498db;
  }
  
  /* Note Styles */
  .note {
    background: #f1c40f;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
  }
  
  /* Button Styles */
  .button {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin: 5px 0;
  }
  
  .button:hover {
    background: #2980b9;
  }