/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
}

.logo:hover .logo-img {
    filter: brightness(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: var(--background-color);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: block;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--background-color);
}

/* Dropdown Menu Styles - iLovePDF Style */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-weight: 600;
    color: #e53e3e;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: all 0.2s ease;
    color: #e53e3e;
    margin-left: 2px;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    width: 900px;
    max-width: 95vw;
    margin-top: 12px;
    overflow: visible;
    backdrop-filter: blur(20px);
    max-height: 80vh;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.95);
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.tool-category {
    padding: 0 16px;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.tool-category:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.08) 80%, transparent 100%);
}

.tool-category h4 {
    font-size: 10px;
    font-weight: 800;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
    text-align: center;
}

.tool-category h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #e53e3e, #ff6b6b);
    border-radius: 2px;
}

.tool-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tool-category ul li {
    margin: 0;
}

.tool-category ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: #2d3748;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
}

.tool-category ul li a:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #e53e3e;
    transform: translateX(4px) translateY(-1px);
    border-color: rgba(229, 62, 62, 0.2);
    box-shadow: 
        0 8px 25px rgba(229, 62, 62, 0.15),
        0 3px 10px rgba(229, 62, 62, 0.1);
}

.tool-category .tool-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tool-category .tool-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.tool-category ul li a:hover .tool-icon {
    background: linear-gradient(135deg, #e53e3e 0%, #ff6b6b 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.tool-category ul li a:hover .tool-icon::before {
    left: 100%;
}

/* Stylish hover effects for different categories */
.tool-category:nth-child(1) ul li a:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: rgba(229, 62, 62, 0.2);
}

.tool-category:nth-child(2) ul li a:hover {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-color: rgba(72, 187, 120, 0.2);
    color: #38a169;
}

.tool-category:nth-child(2) ul li a:hover .tool-icon {
    background: linear-gradient(135deg, #38a169 0%, #68d391 100%);
}

.tool-category:nth-child(3) ul li a:hover {
    background: linear-gradient(135deg, #fffaf0 0%, #fbd38d 100%);
    border-color: rgba(237, 137, 54, 0.2);
    color: #ed8936;
}

.tool-category:nth-child(3) ul li a:hover .tool-icon {
    background: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%);
}

.tool-category:nth-child(4) ul li a:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #c3dafe 100%);
    border-color: rgba(66, 153, 225, 0.2);
    color: #4299e1;
}

.tool-category:nth-child(4) ul li a:hover .tool-icon {
    background: linear-gradient(135deg, #4299e1 0%, #63b3ed 100%);
}

.tool-category:nth-child(5) ul li a:hover {
    background: linear-gradient(135deg, #faf5ff 0%, #e9d8fd 100%);
    border-color: rgba(159, 122, 234, 0.2);
    color: #9f7aea;
}

.tool-category:nth-child(5) ul li a:hover .tool-icon {
    background: linear-gradient(135deg, #9f7aea 0%, #b794f6 100%);
}

.tool-category:nth-child(6) ul li a:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #cbd5e0 100%);
    border-color: rgba(74, 85, 104, 0.2);
    color: #4a5568;
}

.tool-category:nth-child(6) ul li a:hover .tool-icon {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

/* Responsive Dropdown */
@media (max-width: 1024px) {
    .dropdown-menu {
        width: 800px;
    }
    
    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 28px 20px;
    }
    
    .tool-category {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: none;
        border-top: 1px solid var(--border-color);
        opacity: 1;
        visibility: visible;
        display: none;
        background: #ffffff;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 20px 16px;
        background: #ffffff;
    }
    
    .tool-category {
        padding: 0;
        margin-bottom: 24px;
    }
    
    .tool-category:not(:last-child)::after {
        display: none;
    }
    
    .tool-category:not(:last-child) {
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 20px;
    }
    
    .tool-category h4 {
        font-size: 9px;
        margin-bottom: 16px;
        padding-bottom: 10px;
        text-align: left;
    }
    
    .tool-category ul li a {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .tool-category .tool-icon {
        font-size: 16px;
        width: 28px;
        height: 28px;
    }
}

/* Elegant entrance animation */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .dropdown-menu::before {
        display: none;
    }
}

/* Additional polish - subtle animations */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.dropdown:hover .dropdown-menu {
    animation: dropdownSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background-color: var(--background-color);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--surface-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--background-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tools Section */
.tools {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.tools h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tools-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--surface-color);
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.tech-stack h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.tool-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--text-primary);
    background-color: var(--background-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Drop Area */
.drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--background-color);
}

.drop-area:hover,
.drop-area.active {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.drop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.drop-area p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.file-types {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-input {
    display: none;
}

/* Tool Options */
.tool-options {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.option-group {
    margin-bottom: 1rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.option-group input,
.option-group select,
.option-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.option-group input:focus,
.option-group select:focus,
.option-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* File List */
.file-list {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-details h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.file-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.file-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.file-remove:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Progress */
.progress-container {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
}

/* Process Button */
.process-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.process-button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.process-button:active:not(:disabled) {
    transform: translateY(0);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-text {
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

footer p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-text {
        text-align: right;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features h2,
    .tools h2,
    .about h2 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav ul li a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    header .container {
        position: relative;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--surface-color);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-radius: var(--border-radius) 0 var(--border-radius) var(--border-radius);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        min-width: 200px;
        width: auto;
    }
    
    nav ul.active {
        max-height: 400px;
        opacity: 1;
    }
    
    nav ul li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        padding: 1rem 1.5rem;
        border-radius: 0;
        transition: var(--transition);
        display: block;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.4;
        white-space: nowrap;
        overflow: visible;
        box-sizing: border-box;
    }
    
    nav ul li a:hover {
        background-color: var(--background-color);
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-items {
        justify-content: center;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .drop-area {
        padding: 2rem 1rem;
    }
    
    header .container {
        padding: 1rem 15px;
    }
}

/* Trust Indicators Section */
.trust-indicators {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.trust-indicators h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.trust-stat {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.trust-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trust-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.trust-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.security-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.security-badge:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.badge-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--surface-color);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--background-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design for Trust Elements */
@media (max-width: 768px) {
    .trust-indicators h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .trust-stat {
        padding: 1.5rem;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
    
    .security-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .security-badge {
        padding: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .trust-stats {
        grid-template-columns: 1fr;
    }
    
    .trust-number {
        font-size: 2rem;
    }
    
    .badge-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
