* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
}

.logo i {
    color: #e74c3c;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #3498db;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.mobile-menu {
    display: none;
    background: white;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

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

.category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.compress {
    background: #e8f5e9;
    color: #4caf50;
}

.upscale {
    background: #e0f2f1;
    color: #26a69a;
}

.remove-bg {
    background: #e8f5e9;
    color: #4caf50;
}

.meme {
    background: #f3e5f5;
    color: #9c27b0;
}

.editor {
    background: #fce4ec;
    color: #e91e63;
}

.resize {
    background: #e3f2fd;
    color: #2196f3;
}

.crop {
    background: #e0f7fa;
    color: #00bcd4;
}

.rotate {
    background: #e3f2fd;
    color: #2196f3;
}

.to-jpg {
    background: #fffde7;
    color: #ffeb3b;
}

.from-jpg {
    background: #fff3e0;
    color: #ff9800;
}

.html-to-img {
    background: #fffde7;
    color: #ffeb3b;
}

.watermark {
    background: #e8eaf6;
    color: #3f51b5;
}

.blur {
    background: #e3f2fd;
    color: #2196f3;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tool-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    background: #3498db;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-desc {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.feature-arrow {
    color: #3498db;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-arrow {
    transform: translateX(5px);
}

/* Premium Section */
.premium-section {
    padding: 80px 0;
}

.premium-card {
    background: linear-gradient(135deg, #ffeb3b, #ff9800);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.premium-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.premium-desc {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #34495e;
}

.premium-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2c3e50;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.premium-button:hover {
    background: #1a252f;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    text-align: center;
    color: white;
}

.trust-desc {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
    opacity: 0.9;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-item i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.trust-label {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #bdc3c7;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-card {
        padding: 30px 20px;
    }
    
    .premium-title {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tool-card, .feature-card {
        padding: 20px;
    }
}
