/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

body.no-scroll {
    overflow: hidden;
}
a{
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.logo span {
    color: #007bff;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

/* Offcanvas Menu */
.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.offcanvas-menu.active {
    left: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
}

.offcanvas-nav-links {
    list-style: none;
}

.offcanvas-nav-links li {
    margin-bottom: 1rem;
}

.offcanvas-nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.offcanvas-nav-links a:hover,
.offcanvas-nav-links a.active {
    color: #4a90e2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* Main content styles */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 80px - 300px); /* Adjust based on header and footer height */
    margin-top: 80px; /* Add space for fixed header */
}

.main-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.main-content p {
    font-size: 1.1rem;
    color: #666;
}

/* Footer styles */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: #4a90e2;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4a90e2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-icon {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-icon {
    font-size: 8rem;
    color: #007bff;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.circle-bg {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.gear-icon {
    position: absolute;
    color: #0056b3;
    opacity: 0.7;
}

.gear-1 {
    font-size: 4rem;
    top: 20%;
    right: 20%;
    animation: spin 10s linear infinite;
}

.gear-2 {
    font-size: 3rem;
    bottom: 25%;
    right: 30%;
    animation: spin 7s linear infinite reverse;
}

.gear-3 {
    font-size: 3.5rem;
    bottom: 30%;
    left: 25%;
    animation: spin 8s linear infinite;
}

.floating-icon {
    position: absolute;
    color: #0056b3;
    opacity: 0.6;
    z-index: 2;
}

.wrench {
    font-size: 2rem;
    top: 15%;
    left: 15%;
    animation: float 4s ease-in-out infinite;
}

.screwdriver {
    font-size: 2rem;
    bottom: 20%;
    right: 15%;
    animation: float 4s ease-in-out infinite 1s;
}

.hammer {
    font-size: 2rem;
    top: 25%;
    right: 10%;
    animation: float 4s ease-in-out infinite 2s;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.code-icon, .terminal-icon, .laptop-icon, .chip-icon {
    position: absolute;
    font-size: 1.5rem;
    color: #007bff;
    opacity: 0.4;
}

.code-icon {
    top: 10%;
    left: 60%;
    animation: floatRotate 6s ease-in-out infinite;
}

.terminal-icon {
    bottom: 15%;
    right: 65%;
    animation: floatRotate 6s ease-in-out infinite 1s;
}

.laptop-icon {
    top: 20%;
    right: 70%;
    animation: floatRotate 6s ease-in-out infinite 2s;
}

.chip-icon {
    bottom: 25%;
    left: 70%;
    animation: floatRotate 6s ease-in-out infinite 3s;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0.3;
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-2 {
    top: 30%;
    right: 25%;
    animation: particleFloat 8s ease-in-out infinite 2s;
}

.particle-3 {
    bottom: 25%;
    left: 30%;
    animation: particleFloat 8s ease-in-out infinite 4s;
}

.particle-4 {
    bottom: 35%;
    right: 35%;
    animation: particleFloat 8s ease-in-out infinite 6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(0, -20px);
    }
    75% {
        transform: translate(-10px, -10px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        order: 0;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        order: 1;
    }

    

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .animated-icon {
        width: 200px;
        height: 200px;
    }

    .main-icon {
        font-size: 6rem;
    }

    .gear-1 {
        font-size: 3rem;
    }

    .gear-2 {
        font-size: 2.5rem;
    }

    .gear-3 {
        font-size: 2.75rem;
    }

    .floating-elements {
        display: none;
    }

    .floating-icon {
        font-size: 1.5rem;
    }

    .circle-bg {
        width: 180px;
        height: 180px;
    }

    .particle {
        width: 6px;
        height: 6px;
    }
}

/* Tablet Specific Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Header & Navigation */
    .container {
        padding: 0 20px;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.15rem;
    }

    .animated-icon {
        width: 240px;
        height: 240px;
    }

    .main-icon {
        font-size: 7rem;
    }

    /* Tools Section */
    .tools-section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.15rem;
    }

    .section-description p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .section-features {
        gap: 25px;
        padding: 0;
        justify-content: center;
    }

    .feature {
        min-width: 160px;
    }

    /* Category and Tool Cards */
    .tools-category {
        padding: 25px;
        margin-bottom: 40px;
    }

    .tools-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-header {
        margin-bottom: 25px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-info h3 {
        font-size: 1.4rem;
    }

    .tool-card {
        padding: 20px;
    }

    .tool-card h4 {
        font-size: 1.1rem;
    }

    .tool-card p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .tools-wrapper {
        padding: 0 15px;
    }
}

/* Update existing mobile styles to not conflict with tablet */
@media (max-width: 767px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .feature {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* General responsive improvements */
@media (max-width: 1024px) {
    .tools-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .floating-elements {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.tools-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #007bff;
    margin-bottom: 24px;
    font-weight: 500;
}

.section-description {
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.section-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

.feature i {
    font-size: 1.2rem;
    color: #007bff;
}

.feature span {
    font-size: 1rem;
    font-weight: 500;
}

/* Category Styles */
.tools-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tools-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(74, 144, 226, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.category-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-info p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Specific category backgrounds */
.tools-category:nth-child(1) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.tools-category:nth-child(2) {
    background: linear-gradient(135deg, #f8f9fa 0%, #f3e5f5 100%);
}

.tools-category:nth-child(3) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.tool-icon {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4a90e2;
    font-size: 1.5rem;
}

.tool-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tool-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.tool-action {
    color: #4a90e2;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.tool-action i {
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-action i {
    transform: translateX(5px);
}

.tool-card:hover .tool-icon i:not(.arrow-icon) {
    transform: scale(1.1);
    color: #0056b3;
}

.tool-card:hover .arrow-icon {
    animation: slideRight 1s ease infinite;
}

.tool-card h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
}

.tool-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-action {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-action i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-action {
    color: #0056b3;
}

.tool-card:hover .tool-action i {
    transform: translateX(5px);
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tools-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .section-description p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .section-features {
        gap: 20px;
        padding: 0 20px;
    }

    .feature {
        font-size: 0.9rem;
    }

    .tools-category {
        padding: 20px;
        margin-bottom: 30px;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .category-info {
        text-align: center;
    }

    .tool-card {
        padding: 20px;
    }
}

/* Tablet view (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .tools-category {
        padding: 25px;
    }

    .category-header {
        margin-bottom: 25px;
    }

    .tool-card {
        height: 100%;
    }
}

/* Container padding adjustments */
@media (max-width: 1024px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Add margin bottom for better spacing on mobile */
.mb-4 {
    margin-bottom: 1.5rem;
}

.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Converter Section Styles */
.converter-section {
    padding: 120px 0 80px;
}

.tool-header {
    margin-bottom: 3rem;
}

.tool-badge {
    display: inline-block;
    padding: 8px 16px;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-header h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tool-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Area Styles */
.converter-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.upload-area {
    border: 2px dashed #007bff;
    border-radius: 15px;
    padding: 40px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    background: #e7f1ff;
    border-color: #0056b3;
}

.upload-area.dragover {
    background: #e7f1ff;
    border-color: #0056b3;
    transform: scale(1.01);
}

.upload-area.has-file {
    border-style: solid;
    background: #e7f1ff;
}

.upload-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-content h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: #666;
    margin: 0.5rem 0;
}

.upload-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-content h3 {
        font-size: 1.2rem;
    }
}

/* Settings Styles */
.conversion-settings {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.conversion-settings h4 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
}

/* Convert Button */
.convert-btn {
    padding: 15px 40px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.convert-btn:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.convert-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.convert-btn i {
    margin-right: 8px;
}

/* Features Section */
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* How to Use Section */
.step-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step-card h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .converter-section {
        padding: 100px 0 60px;
    }

    .tool-header h1 {
        font-size: 2.2rem;
    }

    .converter-box {
        padding: 20px;
    }

    .upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .feature-card, .step-card {
        padding: 20px;
    }
}

/* Tablet view (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .converter-section {
        padding: 110px 0 70px;
    }

    .converter-box {
        padding: 30px;
    }

    .tool-header h1 {
        font-size: 2.5rem;
    }
}

/* Progress Bar Styles */
.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress {
    background-color: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3);
    transition: width 0.5s ease, background 0.5s ease;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 25px;
}

.progress-bar.success {
    background: linear-gradient(45deg, #28a745, #218838);
}

#progress-text {
    font-size: 0.9rem;
    color: #666;
}

/* Download Button Styles */
.download-btn {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    min-width: auto !important;
}

.download-btn i {
    margin-right: 4px;
}

.download-container .download-btn {
    padding: 6px 12px !important;
    font-size: 0.9rem !important;
}

/* Animation for progress and download containers */
.progress-container, .download-container {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.progress-container[style*="block"], .download-container[style*="block"] {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Background Elements */
.animated-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-tool {
    position: absolute;
    color: #007bff;
    opacity: 0.15;
    z-index: 1;
}

.tool-1 {
    top: 10%;
    left: 5%;
    font-size: 2rem;
    animation: float 8s ease-in-out infinite;
}

.tool-2 {
    top: 20%;
    right: 10%;
    font-size: 1.8rem;
    animation: float 8s ease-in-out infinite 1s;
}

.tool-3 {
    bottom: 15%;
    left: 10%;
    font-size: 2.2rem;
    animation: float 8s ease-in-out infinite 2s;
}

.tool-4 {
    bottom: 25%;
    right: 10%;
    font-size: 2.5rem;
    animation: spinFloat 10s linear infinite;
}

.tool-5 {
    top: 50%;
    left: 50%;
    font-size: 2rem;
    animation: float 8s ease-in-out infinite 3s;
}

/* Header Icon Styles */
.header-icon {
    margin-bottom: 2rem;
}

.icon-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-icon {
    font-size: 3rem;
    color: #007bff;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.rotating-gear {
    position: absolute;
    color: #0056b3;
    opacity: 0.2;
}

.gear-1 {
    top: 20%;
    right: 20%;
    font-size: 2rem;
    animation: spin 10s linear infinite;
}

.gear-2 {
    bottom: 25%;
    left: 20%;
    font-size: 1.8rem;
    animation: spin 8s linear infinite reverse;
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    font-size: 1.2rem;
    color: #007bff;
    opacity: 0.2;
    transition: all 0.3s ease;
}

.top-left {
    top: 20px;
    left: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.top-right {
    top: 20px;
    right: 20px;
    animation: pulse 2s ease-in-out infinite 0.5s;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    animation: pulse 2s ease-in-out infinite 1s;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    animation: pulse 2s ease-in-out infinite 1.5s;
}

/* Feature Card Icon Animations */
.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: #007bff;
    z-index: 2;
}

.icon-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 3s ease-in-out infinite;
}

.icon-particles span:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.icon-particles span:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 1s;
}

.icon-particles span:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 2s;
}

.icon-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #007bff;
    border-radius: 50%;
    opacity: 0.2;
    animation: ringPulse 2s ease-in-out infinite;
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,123,255,0.2) 0%, rgba(0,123,255,0) 70%);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

/* Particle Group */
.particle-group {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0.2;
}

.p1 { top: 20%; left: 20%; animation: particleFloat 8s ease-in-out infinite; }
.p2 { top: 80%; left: 80%; animation: particleFloat 8s ease-in-out infinite 2s; }
.p3 { top: 40%; right: 30%; animation: particleFloat 8s ease-in-out infinite 4s; }
.p4 { bottom: 30%; right: 60%; animation: particleFloat 8s ease-in-out infinite 6s; }

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spinFloat {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(180deg) translateY(-20px);
    }
    100% {
        transform: rotate(360deg) translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(0, -20px);
    }
    75% {
        transform: translate(-10px, -10px);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-tool {
        font-size: 1.5rem;
    }

    .icon-circle {
        width: 100px;
        height: 100px;
    }

    .main-icon {
        font-size: 2.5rem;
    }

    .corner-decoration {
        font-size: 1rem;
    }

    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .feature-icon-wrapper i {
        font-size: 2rem;
    }
}

/* File List Styles */
.file-list {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.file-list-header h4 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
}

.selected-files {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.selected-files::-webkit-scrollbar {
    width: 6px;
}

.selected-files::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.selected-files::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.selected-files::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item:hover {
    background: #f3f4f6;
    border-color: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.8rem;
    color: #666;
    margin: 2px 0 0 0;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 180px; /* Ensure consistent width for progress/buttons */
    justify-content: flex-end;
}

.file-actions button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.file-actions button i {
    font-size: 0.9rem;
}

.file-actions .download-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
}

.file-actions .download-btn:hover {
    background-color: #357abd;
    transform: translateY(-1px);
}

.file-actions .remove-file {
    background-color: #dc3545;
    border: none;
    color: white;
    padding: 6px 10px;
}

.file-actions .remove-file:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .file-item {
        padding: 10px 12px;
    }

    .file-info {
        gap: 8px;
    }

    .file-name {
        font-size: 0.9rem;
    }

    .file-size {
        font-size: 0.75rem;
    }

    .file-actions {
        min-width: auto;
        flex-direction: column;
        gap: 5px;
    }

    .file-actions button {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .file-actions button i {
        font-size: 0.8rem;
    }
}

/* Custom Size Inputs */
#custom-size-inputs {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    margin-top: 10px;
}

#custom-size-inputs label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

#custom-size-inputs input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

#custom-size-inputs input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

#custom-size-inputs .form-check {
    margin-top: 10px;
}

#custom-size-inputs .form-check-label {
    font-size: 0.85rem;
    color: #666;
}

/* Hide number input spinners */
#custom-size-inputs input[type="number"]::-webkit-inner-spin-button,
#custom-size-inputs input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#custom-size-inputs input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
    #custom-size-inputs {
        padding: 10px;
    }

    #custom-size-inputs .row {
        margin: 0 -5px;
    }

    #custom-size-inputs .col {
        padding: 0 5px;
    }
}

/* General Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

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

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

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Main Content Styles */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 80px - 300px); /* Adjust based on header and footer height */
}

.converter-section {
    position: relative;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Tool Header */
.tool-header {
    margin-bottom: 3rem;
}

.tool-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-description {
    color: #666;
    font-size: 1.1rem;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(74, 144, 226, 0.05);
}

.upload-area:hover,
.upload-area.highlight {
    border-color: var(--accent-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.upload-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* File List Styles */
.file-list {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 2rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.remove-file {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

/* Settings Styles */
.conversion-settings {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Button Styles */
.convert-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.convert-btn:hover {
    background-color: #357abd;
}

.convert-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Progress Bar Styles */
.progress {
    height: 25px !important;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
}

.progress-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    line-height: 25px;
    font-weight: 500;
}

/* Download Button Styles */
.download-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animated Elements */
.animated-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-tool {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

.tool-1 { top: 10%; left: 5%; animation-delay: 0s; }
.tool-2 { top: 20%; right: 5%; animation-delay: 1s; }
.tool-3 { bottom: 15%; left: 10%; animation-delay: 2s; }
.tool-4 { bottom: 25%; right: 10%; animation-delay: 3s; }
.tool-5 { top: 50%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.particle-group {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: particle-float 8s infinite linear;
}

.p1 { top: 20%; left: 20%; animation-delay: 0s; }
.p2 { top: 80%; left: 80%; animation-delay: 2s; }
.p3 { top: 40%; right: 30%; animation-delay: 4s; }
.p4 { bottom: 30%; right: 60%; animation-delay: 6s; }

@keyframes particle-float {
    0% { transform: translate(0, 0); }
    25% { transform: translate(50px, 50px); }
    50% { transform: translate(0, 100px); }
    75% { transform: translate(-50px, 50px); }
    100% { transform: translate(0, 0); }
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.2;
    animation: pulse 2s infinite ease-in-out;
}

.top-left { top: 1rem; left: 1rem; }
.top-right { top: 1rem; right: 1rem; }
.bottom-left { bottom: 1rem; left: 1rem; }
.bottom-right { bottom: 1rem; right: 1rem; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .composer-container {
        margin-top: 8rem;  /* Adjusted for mobile */
        padding: 1rem;
    }

    .preview-area {
        min-height: 300px;
    }

    .upload-area {
        padding: 2rem 1rem;  /* Adjusted padding for mobile */
    }
}

/* File Progress Styles */
.file-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-progress .progress {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.file-progress .progress-bar {
    background: linear-gradient(45deg, var(--primary-color), #357abd);
    transition: width 0.3s ease;
}

.file-progress .progress-text {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

/* Update file actions to accommodate progress bar */
.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 180px; /* Ensure consistent width for progress/buttons */
    justify-content: flex-end;
}

.file-actions button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .file-actions {
        min-width: auto;
        flex-direction: column;
        gap: 5px;
    }

    .file-progress {
        flex-direction: column;
        gap: 5px;
    }

    .file-progress .progress {
        width: 80px;
    }

    .file-progress .progress-text {
        font-size: 0.75rem;
    }
}

/* Image Editor Styles */
.image-editor-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-top: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.image-editor-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.upload-area {
    position: relative;
    min-height: 400px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.upload-placeholder {
    text-align: center;
    color: #666;
}

.upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #999;
}

.upload-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #0056b3;
}

.image-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.editor-controls {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.control-group h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.control-item {
    margin-bottom: 20px;
}

.control-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.control-item input[type="range"] {
    width: 100%;
}

.filter-buttons, .action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.filter-btn, .action-btn {
    padding: 0.5rem;
    border: none;
    background-color: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover, .action-btn:hover {
    background-color: #dee2e6;
}

.download-btn, .reset-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 0.5rem;
}

.download-btn {
    background-color: #28a745;
    color: white;
}

.download-btn:hover {
    background-color: #218838;
}

.reset-btn {
    background-color: #dc3545;
    color: white;
}

.reset-btn:hover {
    background-color: #c82333;
}

@media (max-width: 768px) {
    .image-editor-container {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        min-height: 300px;
    }
}

.section-description {
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Slider Styles */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    transition: background 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.2);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    background-color: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.action-btn:hover:not(:disabled) {
    background-color: #dee2e6;
    transform: translateY(-1px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

/* Specific styles for undo/redo buttons */
#undoBtn, #redoBtn {
    background-color: #4a90e2;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#undoBtn:hover:not(:disabled), #redoBtn:hover:not(:disabled) {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#undoBtn:disabled, #redoBtn:disabled {
    background-color: #a0c3e8;
    color: #e9ecef;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

#undoBtn.active, #redoBtn.active {
    animation: buttonPulse 1s ease;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Add ripple effect for undo/redo buttons */
#undoBtn::after, #redoBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

#undoBtn:active::after, #redoBtn:active::after {
    width: 100%;
    height: 100%;
    opacity: 0;
} 

.composer-container {
    max-width: 1200px;
    margin: 12rem auto 2rem;  /* Increased top margin */
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.preview-area {
    min-height: 400px;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    background: #f8f9fa;
}
.tool-button {
    padding: 0.8rem 1.2rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border: none;
    background: #007bff;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.tool-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.upload-area {
    padding: 3rem 2rem;  /* Increased vertical padding */
    text-align: center;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin: 2rem 0;  /* Added margin */
}
.upload-area:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

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

.composer-container {
    animation: fadeIn 0.5s ease-out;
}