/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff;
}

.nav-brand i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #b8b8b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 150, 0.1) 100%);
    margin: 40px 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #ff0096 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b8b8b8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.stat-label {
    font-size: 0.9rem;
    color: #b8b8b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    gap: 30px;
    margin: 60px 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #ff0096 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before,
.tool-card.active::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.tool-header {
    margin-bottom: 25px;
}

.tool-header i {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 15px;
    display: block;
}

.tool-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.tool-header p {
    color: #b8b8b8;
    font-size: 1rem;
}

/* Input Components */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tool-input,
.tool-select {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tool-input:focus,
.tool-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

.tool-input::placeholder {
    color: #666;
}

.tool-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.tool-button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
}

.tool-button:active {
    transform: translateY(0);
}

.tool-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Results Container */
.results-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    min-height: 100px;
    display: none;
}

.results-container.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid #00d4ff;
}

.result-label {
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 5px;
}

.result-value {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.error-message {
    color: #ff4757;
    text-align: center;
    padding: 20px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #00d4ff;
    margin-bottom: 15px;
}

.footer-section p {
    color: #b8b8b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .tool-input,
    .tool-select,
    .tool-button {
        min-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
