
        :root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: rgba(67, 97, 238, 0.1);
    --secondary: #7209b7;
    --secondary-light: rgba(114, 9, 183, 0.1);
    --accent: #f72585;
    --accent-light: rgba(247, 37, 133, 0.1);
    --success: #4cc9f0;
    --success-light: rgba(76, 201, 240, 0.1);
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--dark), #000);
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f7fb;
            color: var(--dark);
            line-height: 1.6;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /*====Header styles====================== Header Styles=======================Header Styles====*/
      /* Enhanced Header with Glass Effect */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    color: var(--dark);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon {
    background: var(--gradient-primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.h1Logo {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
}
/*logo img.*/
.logo img {
  height: 40px;   /* logo size */
  width: auto;
}
/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 80%;
}

nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.4);
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    background: var(--primary-light);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu:hover {
    background: var(--primary);
    color: white;
}
        
 /*====Header styles====================== Header Styles=======================Header Styles====*/

        /* ===== MAIN IMAGE RESIZER SECTION STYLES ===== */
/* Apply only to the specific container with image resizer content */
.container:has(.upload-section) {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .container:has(.upload-section) {
        grid-template-columns: 1fr 1fr 1.5fr;
        align-items: start;
    }
}

/* ===== HEADER SECTION (Only for image resizer) ===== */
section.controls-section:first-of-type {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: rgb(253, 253, 253);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

section.controls-section:first-of-type h1 {
    color: white;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

section.controls-section:first-of-type h1 i {
    color: white;
}

section.controls-section:first-of-type .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #4f46e5;
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1);
}

.upload-area i {
    font-size: 3.5rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: #1e293b;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.upload-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.upload-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* ===== PREVIEW CONTAINER ===== */
.preview-container {
    display: none;
    margin-top: 1.5rem;
}

.preview-container.active {
    display: block;
}

#imagePreview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.file-info {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.instructions {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.instructions p {
    margin: 0;
    color: #0369a1;
}

/* ===== CONTROLS SECTION (Only for image resizer controls) ===== */
.container .controls-section:not(:first-of-type) {
    background: white;  
    max-width: 500px;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}
.control-group {
    margin-bottom: 2rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.control-group h3 i {
    color: #4f46e5;
}

/* ===== RESIZE MODES ===== */
.resize-modes {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem
}

.mode-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    border-color: #c7d2fe;
    background: #f1f5f9;
}

.mode-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: #4f46e5;
}

/* ===== DIMENSION CONTROLS ===== */
.dimension-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.dimension-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dimension-input label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.dimension-input input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #334155;
    background: white;
    transition: all 0.2s ease;
}

.dimension-input input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.dimension-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
    padding-bottom: 0.5rem;
}

/* ===== LOCK ASPECT RATIO ===== */
.lock-aspect-ratio {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.lock-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.lock-btn:hover {
    border-color: #4f46e5;
    background: #f1f5f9;
}

.lock-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.lock-btn.active:hover {
    background: #4338ca;
    border-color: #4338ca;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    border-left: 4px solid #dc2626;
    display: none;
    margin-top: 1rem;
}

.error-message.active {
    display: block;
}

/* ===== FORMAT SELECTOR ===== */
.format-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.format-option {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.format-option:hover {
    border-color: #c7d2fe;
    background: #f1f5f9;
}

.format-option.active {
    background: var(--gradient-primary);
    color: white;
    border-color: #4f46e5;
}

/* ===== QUALITY CONTROL ===== */
.quality-control {
    margin-bottom: 1.5rem;
}

.quality-control label {
    display: block;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-weight: 500;
}

.quality-value {
    color: #4f46e5;
    font-weight: 600;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#quality {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    appearance: none;
    cursor: pointer;
}

#quality::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#quality::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== FILE SIZE CONTROL ===== */
.file-size-control {
    display: flex;
    gap: 0.75rem;
}

.file-size-control input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #334155;
    background: white;
}

.file-size-control input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.file-size-control select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #334155;
    background: white;
    min-width: 80px;
}

.file-size-control select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ===== PREVIEW SECTION ===== */
.preview-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.preview-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.preview-section h3 i {
    color: #4f46e5;
}

.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.placeholder-text {
    text-align: center;
    color: #94a3b8;
}

.placeholder-text i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.placeholder-text p {
    color: #94a3b8;
    margin: 0;
}

#resizedPreview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    border-radius: 8px;
}

/* ===== LOADING SPINNER ===== */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loading.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SIZE INFO ===== */
.size-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.size-box {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.size-box h4 {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.size-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

/* ===== EXPORT BUTTON ===== */
.export-btn-container {
    margin-top: auto;
}

.export-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.export-btn:hover:not(:disabled) {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.export-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== MOBILE RESPONSIVE STYLES ==================================MOBILE RESPONSIVE STYLES=================================================== */
/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        
    }

    .header {
        margin: 2px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        width: 100%;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .mobile-menu {
        display: flex;
        position: absolute;
        top: 1.2rem;
        right: 20px;
    }
    
    .auth-buttons {
        display: none;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .search-box {
        margin: 0 10px;
    }
    
    .search-box button {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    .search-box input {
        padding: 18px 20px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
        border-left: 4px solid transparent;
    }
    
    .tab.active {
        border-bottom: 1px solid var(--light-gray);
        border-left: 4px solid var(--primary);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
    
}

@media (max-width: 480px) {
 
    .container {
        padding: 0 5px;
    
    }
    .header-content {
       height: 35px;

    }

    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .cta {
        padding: 4rem 0;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta .btn {
        padding: 16px 30px;
        font-size: 1.1rem;
    }
    
    
}

/* Mobile logo size fix */
@media (max-width: 768px) {

  .header-content {
    padding: 10px 12px;
    align-content: left;
  }

  .logo {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;

  }

  .logo i {
    font-size: 25px; 
    text-align: left;  /* icon small */
    
  }

  .logo h1,
  .logo .logo-text {
    font-size: 20px;   /* text small */
    font-weight: 700;
  }
}


/* main Body section Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container:has(.upload-section) {
        grid-template-columns: 1fr 1fr;
    }
    
    .preview-section {
        grid-column: span 2;
    }
    
    section.controls-section:first-of-type h1 {
        font-size: 2rem;
    }
}

/* main body section Mobile (up to 767px) */
@media (max-width: 767px) {
    .container:has(.upload-section) {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
    }
    
    section.controls-section:first-of-type {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    section.controls-section:first-of-type h1 {
        font-size: 1.75rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    section.controls-section:first-of-type .tagline {
        font-size: 1rem;
    }
    
    .dimension-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dimension-separator {
        display: none;
    }
    
    .format-selector {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .size-info {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-area i {
        font-size: 2.5rem;
    }
    
    .preview-section,
    .container .controls-section:not(:first-of-type),
    .upload-section {
        padding: 1.25rem;
    }
    
    .resize-modes {
        flex-direction: column;
    }
    
}

/* main body section Small Mobile (up to 480px) */
@media (max-width: 480px) {
    
    .section.controls-section:first-of-type h1 {
        font-size: 1.5rem;
    }
    
    .section.controls-section:first-of-type .tagline {
        font-size: 0.95rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-area i {
        font-size: 2rem;
    }
    
    .format-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .file-size-control {
        flex-direction: column;
    }
    
    .preview-area {
        min-height: 250px;
    }
    
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.container:has(.upload-section) button:focus,
.container:has(.upload-section) input:focus,
.container:has(.upload-section) select:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .container:has(.upload-section) * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
      
        /* CTA Section */
        .cta {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 4rem 0;
            text-align: center;
            border-radius: var(--border-radius);
            margin: 3rem 0;
        }

        .cta h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .cta p {
            max-width: 600px;
            margin: 0 auto 2rem;
            font-size: 1.1rem;
        }

        .cta .btn {
            background: white;
            color: var(--primary);
            font-size: 1.1rem;
            padding: 12px 30px;
        }

        .cta .btn:hover {
            background: var(--light-gray);
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-column h3 {
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 0.8rem;
        }

        .footer-column a {
            color: #adb5bd;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-column a:hover {
            color: white;
            padding-left: 5px;
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #495057;
            color: #adb5bd;
            font-size: 0.9rem;
        }

         /* Dark Mode Toggle */
/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-large);
    z-index: 100;
    transition: var(--transition);
    border: none;
    font-size: 1.5rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(30deg);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.4);
}

        /* Dark Mode Styles */
        body.dark-mode {
            background-color: #121212;
            color: #ffffff;
        }

        body.dark-mode .tool-card,
        body.dark-mode .category-card,
        body.dark-mode .features,
        body.dark-mode .tabs-container
 {
            background: #1e1e1e;
            color: #ffffff;
        }

        body.dark-mode .tool-card h3,
        body.dark-mode .category-card h3,
        body.dark-mode .feature-item h3 {
            color: #ffffff;
        }

        body.dark-mode .tool-card p,
        body.dark-mode .category-card p,
        body.dark-mode .feature-item p {
            color: #b0b0b0;
        }

        body.dark-mode .search-box input {
            background: #2d2d2d;
            border-color: #3d3d3d;
            color: #e0e0e0;
        }

        body.dark-mode footer {
            background: #1a1a1a;
        }

        body.dark-mode .tabs {
            border-bottom-color: #3d3d3d;
        }

        body.dark-mode .tab:hover {
            background-color: #2d2d2d;
        }

        
    
    .social-icons {
        display: flex;
        gap: 18px;
        margin-top: 10px;
        justify-content: flex-start;
    }
    .social-icon {
        font-size: 2rem;
        color: #adb5bd;
        transition: transform 0.3s, color 0.3s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        background: transparent;
    }
    .social-icon:hover {
        transform: scale(1.25) rotate(-12deg);
        color: var(--primary);
        background: rgba(67, 97, 238, 0.15);
    }
    .social-icon.facebook:hover { color: #3b5998; }
    .social-icon.instagram:hover { color: #e4405f; }
    .social-icon.linkedin:hover { color: #0e76a8; }
    .social-icon.twitter:hover { color: #1da1f2; }
    .social-icon.youtube:hover { color: #ff0000; }
