
        /* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;    /* Royal Blue */
    --secondary-color: #1d4ed8;  /* Darker Blue */
    --accent-color: #3b82f6;     /* Light Blue */
    --success-color: #10b981;    /* Green */
    --warning-color: #f59e0b;    /* Orange */
    --error-color: #ef4444;      /* Red */
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation Styles */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
  
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo i {
    font-size: 1.8rem;
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    color: var(--primary-color);
    background-color: var(--background-color);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 6px 0;
        border-bottom: 2px solid #2563eb;
    }

    /* Hamburger Animation */
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Header Styles */
.header {
    padding: 4rem 2rem 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.input-wrapper {
    display: flex;
    gap: 1rem;
}

#websiteUrl {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

#websiteUrl:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fetch-btn {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fetch-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Features Section */
.features {
    padding: 2rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Formats Section */
.formats {
    padding: 2rem 2rem;
    background-color: var(--white);
}

.formats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.format-card {
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    transition: var(--transition);
}

.format-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.format-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.format-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* How-to Section */
.how-to {
    padding: 2rem 2rem;
    background-color: var(--background-color);
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Tools Section */
.tools {
    padding: 2rem 2rem;
    background-color: var(--white);
}

.tools-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--background-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* FAQ Section Styles */
.faq {
    padding: 2rem 2rem;
    background-color: var(--background-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Item */
.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hide checkbox */
.faq-toggle {
    display: none;
}

/* Question Styling */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Plus/Minus Icon */
.faq-question .icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-question .icon::before,
.faq-question .icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Vertical line */
.faq-question .icon::before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

/* Horizontal line */
.faq-question .icon::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

/* Answer Styling */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

/* Toggle States */
.faq-toggle:checked + .faq-question {
    color: var(--primary-color);
}

.faq-toggle:checked + .faq-question .icon::before {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Hover Effects */
.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Optional: Animation for the icon */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(90deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.25rem;
        font-size: 0.9rem;
    }

    .faq-toggle:checked + .faq-question + .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

/* Optional: Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .faq-item {
        background-color: var(--dark-bg);
    }

    .faq-question {
        color: var(--dark-text);
    }

    .faq-answer {
        color: var(--dark-text-light);
    }

    .faq-question:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 15px;
}


.footer-bottom {
    text-align: center;
}

/* Message Output */
.message-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
}

.message-output.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
}

.message-output.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.7rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .fetch-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        padding: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .feature-card, .format-card, .tool-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .format-card, .tool-card, .step, .faq-item {
    animation: fadeIn 0.5s ease-out forwards;
}
/* Header and Tabs Styles */
.header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.header-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.tab-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-title.active {
    display: block;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tabs-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
   padding: 0.6rem 0.6rem;
    text-align: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
}

/* Tab Content and Form Styles */
.tab-content {
    padding: 1rem 1rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.websiteUrl {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.websiteUrl:focus {
    outline: none;
    border-color: #2563eb;
}

.fetch-btn {
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fetch-btn:hover {
    background-color: #1d4ed8;
}

.fetch-btn i {
    font-size: 1.1rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-title {
        font-size: 1.8rem;
    }

    .tab-btn span {
        font-size: 0.9rem;
    }

    .tab-btn i {
        font-size: 1rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .fetch-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Add these styles for the logo */
.form-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.form-logo i {
    font-size: 4rem;
    color: white;
    padding: 1.5rem;
        border: 1px solid  #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .form-logo i {
        font-size: 3rem;
        padding: 1rem;
    }
    
    .tab-header {
    overflow: scroll;
}

.formats-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));}

.nav-logo {
    
    font-size: 1.2rem;}
.header {
    padding: 4rem 1rem 4rem;}
    
    .tabs-container {
    padding: 0px;}
    
    
}
/* Loader */
.loader {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(67, 97, 238, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: none;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    border: 2px dashed #1e51da;
    padding: 15px;
}

.image-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.image-container {
    width: 100%; /* Full width */
    height: 100px; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents overflow */
}

.image-container img {
    max-width: 100%; /* Image won't exceed the container width */
    max-height: 100%; /* Image won't exceed the container height */
    width: auto; /* Keeps original width for small images */
    height: auto; /* Keeps original height for small images */
    padding-top:15px;
    object-fit: scale-down; /* Ensures small images stay original, large images fit */
}

.image-card:hover .image-container img {
    transform: scale(1.05);
}

.image-info {
    padding: 1.5rem;
    text-align: -webkit-center;
}

.image-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--secondary-color);
}

/* Download All Button */
.download-all-section {
    text-align: center;
    margin: 2rem 0;
}

.download-all-btn {
    background: #272c2a;
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.download-all-btn:hover {
    background: #3db8df;
    transform: translateY(-2px);
}
   
   ul.nav-menu.active {
    position: absolute;
    z-index: 333;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration:none;
    padding: 15px;
    border-radius: 12px;
    width: 150px;
    height: 60px;
    transition: transform .3s,background-color .3s
}

.grid-item:hover {
    transform: scale(1.05)
}

.grid-item:hover a {
    color: #fff
}

.icon {
    font-size: 40px;
    margin-bottom: 10px
}

.site-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    text-align: center;
    margin-top: 9px
}
.download-btn, .grid-item {
    background-color: #2563eb;
}