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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background-color: #ffffff;
    color: rgb(255, 0, 136);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #000000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.logo-icon {
    margin-right: 4px;
    font-size: 16px;
}

.logo-text {
    color: rgb(0, 0, 0);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.nav-item:hover {
    opacity: 0.8;
}

.dropdown-arrow {
    margin-left: 6px;
    font-size: 10px;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.signup-btn {
    background: white;
    color: #e53e3e;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.signup-btn:hover {
    background-color: #f0f0f0;
}

.menu-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main content */
.main {
    background-color: #f8f9fa;
}

/* Hero section */
.hero {
    background-color: #f7fbff;
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-description {
    font-size: 16px;
    color: #718096;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Category tabs */
.category-tabs {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tab {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: #2d3748;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #2d3748;
    border-radius: 2px 2px 0 0;
}

.tab:hover:not(.active) {
    color: #4a5568;
}

/* Tools grid */
.tools-grid {
    padding: 40px 0 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    justify-items: stretch;
    /* make items stretch full cell width */
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    border: 1px solid #e0e0e0;
    width: 100%;
    /* fill grid cell */
    max-width: none;
    /* remove 280px limit */
    display: block;
    /* so it behaves like a block */
    text-decoration: none;
    /* remove underline */
    color: inherit;
    /* keep text color */
}


.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tool-card.special {
    position: relative;
}

.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #e53e3e;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Specific tool icon colors */
.tool-icon.merge {
    background-color: #ff6b47;
    color: white;
}

.tool-icon.split {
    background-color: #ff6b47;
    color: white;
}

.tool-icon.compress {
    background-color: #68d391;
    color: white;
}

.tool-icon.word {
    background-color: #4299e1;
    color: white;
}

.tool-icon.powerpoint {
    background-color: #ff6b47;
    color: white;
}

.tool-icon.excel {
    background-color: #48bb78;
    color: white;
}

.tool-icon.word-to-pdf {
    background-color: #4299e1;
    color: white;
}

.tool-icon.ppt-to-pdf {
    background-color: #ff6b47;
    color: white;
}

.tool-icon.excel-to-pdf {
    background-color: #48bb78;
    color: white;
}

.tool-icon.edit {
    background-color: #9f7aea;
    color: white;
}

.tool-icon.jpg {
    background-color: #ffd700;
    color: white;
}

.tool-icon.jpg-to-pdf {
    background-color: #ffd700;
    color: white;
}

.tool-title {
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 12px;
}

.tool-description {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

/* Steps section for mail merge */
.steps-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4299e1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 20px;
}

.drop-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.drop-zone:hover {
    border-color: #4299e1;
    background-color: #f7fafc;
}

.drop-zone.dragover {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.drop-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.drop-text {
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.drop-subtext {
    font-size: 14px;
    color: #718096;
}

.format-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.format-option {
    position: relative;
}

.format-option input[type="radio"] {
    display: none;
}

.format-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-option input[type="radio"]:checked+label {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.format-option label:hover {
    border-color: #cbd5e0;
}

.format-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.format-text {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.merge-btn {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.merge-btn:hover:not(:disabled) {
    background-color: #3182ce;
}

.merge-btn:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        font-size: 12px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }

    .tabs {
        gap: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .tab {
        white-space: nowrap;
        font-size: 13px;
    }

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

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

    .steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .format-selection {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .drop-zone {
        padding: 30px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .auth-buttons {
        gap: 8px;
    }

    .login-btn,
    .signup-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}