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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0;
    background: none;
    border: none;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 80%;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #333;
}

.hero p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Tools Grid */
.tools-section {
    padding: 40px 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tool-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.tool-icon {
    font-size: 32px;
    min-width: 40px;
}

.tool-name {
    font-size: 18px;
    font-weight: 600;
}

.tool-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.1);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Color variants for tool cards */
.tool-card.blue { border-color: #2196F3; }
.tool-card.orange { border-color: #FF9800; }
.tool-card.purple { border-color: #9C27B0; }
.tool-card.green { border-color: #4CAF50; }
.tool-card.red { border-color: #F44336; }
.tool-card.teal { border-color: #009688; }
.tool-card.pink { border-color: #E91E63; }
.tool-card.yellow { border-color: #FFC107; }
.tool-card.indigo { border-color: #3F51B5; }
.tool-card.cyan { border-color: #00BCD4; }

/* Content Section */
.content-section {
    background-color: #fff;
    padding: 60px 20px;
    margin: 40px 0;
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.content-section h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* FAQ Section */
.faq-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.faq-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: #4CAF50;
}

/* Tool Page Styles */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

.tool-interface {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.tool-interface h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.tool-interface .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.upload-area {
    border: 3px dashed #ccc;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    margin: 30px 0;
    transition: border-color 0.3s;
    background-color: #fafafa;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background-color: #f0f8f0;
}

.upload-area p {
    color: #999;
    font-size: 16px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background-color: #FF9800;
    color: #fff;
}

.btn-primary:hover {
    background-color: #F57C00;
}

.btn-secondary {
    background-color: #00BCD4;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #0097A7;
}

.btn-success {
    background-color: #4CAF50;
    color: #fff;
}

.btn-success:hover {
    background-color: #388E3C;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.controls {
    margin: 30px 0;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.control-group input[type="range"],
.control-group input[type="number"],
.control-group input[type="text"],
.control-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.control-group input[type="checkbox"] {
    margin-right: 8px;
}

.preview-area {
    margin: 30px 0;
    text-align: center;
}

.preview-area canvas {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.error-message {
    color: #F44336;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
