:root {
    --primary-color: #4a6fa5;
    --primary-dark: #1d4ed8;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --bg-color: #f8f9fa;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --text-secondary: #9ca3af;
    --card-bg: #ffffff;
    --error-color: #ef4444;
    --success-color: #10b981;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 20px 80px;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.header::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

.header-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.hamburger-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-menu:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 10px 0;
    min-width: 220px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-menu a i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main-content {
    margin-top: -60px;
    padding-bottom: 60px;
    position: relative;
    z-index: 20;
}

.tabs-container {
    max-width: 900px;
    margin: 0 auto 40px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
}

.tab-btn {
    flex: 1;
    border: none;
    background-color: transparent;
    padding: 24px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(22, 96, 136, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.tab-btn.active {
    color: var(--primary-color);
    background-color: var(--card-bg);
}

.tab-btn.active:after {
    width: 60%;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.form-group label i {
    margin-right: 10px;
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.clear-input-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 8px;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: none;
}

.clear-input-btn:hover {
    color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper input:not(:placeholder-shown) ~ .clear-input-btn {
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
}

.loader {
    display: none;
    text-align: center;
    margin: 40px 0;
}

.loader-spinner {
    border: 4px solid rgba(74, 111, 165, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader p {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.05rem;
}

.result {
    margin-top: 40px;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: none;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.result-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    margin: 0;
}

.result h3 i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.result.success .copy-btn {
    display: flex;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.copy-btn.copied {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.result-content {
    white-space: pre-wrap;
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    overflow: auto;
    line-height: 1.6;
    border: 1px solid var(--border-color);
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    max-height: 500px;
}

.result.error {
    border-left-color: var(--error-color);
    animation: shake 0.5s ease-in-out;
}

.result.error h3 i {
    color: var(--error-color);
}

.result.success {
    border-left-color: var(--success-color);
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.result.success h3 i {
    color: var(--success-color);
}

.features-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-color), #f3f4f6);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    height: 80px;
    width: 80px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(22, 96, 136, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

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

.feature-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: var(--text-color);
    font-weight: 700;
}

.feature-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    padding: 50px 0 30px;
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #e5e7eb;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.copyright {
    color: #9ca3af;
    font-size: 0.95rem;
    padding-top: 25px;
    border-top: 1px solid #374151;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .tabs-container {
        margin: 0 10px 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 50px 15px 70px;
        border-radius: 0 0 15px 15px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .header p {
        font-size: 1.05rem;
    }

    .main-content {
        margin-top: -50px;
    }

    .tabs-container {
        margin: 0 5px 30px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .tab-btn:after {
        display: none;
    }

    .tab-btn.active {
        background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(22, 96, 136, 0.1));
    }

    .tab-content {
        padding: 30px 25px;
    }

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

    .feature-card {
        padding: 30px 25px;
    }

    .form-group input {
        padding: 16px 50px 16px 18px;
    }

    .btn {
        width: 100%;
        padding: 16px 25px;
    }

    .result-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 10px 60px;
    }

    .header h1 {
        font-size: 1.9rem;
    }

    .header p {
        font-size: 1rem;
    }

    .tabs-container {
        margin: 0 2px 25px;
    }

    .tab-content {
        padding: 25px 20px;
    }

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

    .form-group input {
        padding: 15px 45px 15px 15px;
        font-size: 15px;
    }

    .btn {
        padding: 15px 20px;
        font-size: 15px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        height: 70px;
        width: 70px;
        margin-bottom: 20px;
    }

    .feature-icon i {
        font-size: 28px;
    }

    .result-content {
        padding: 20px;
        font-size: 13px;
        max-height: 400px;
    }

    .hamburger-menu {
        padding: 10px 12px;
        font-size: 1.2rem;
    }

    .nav-menu {
        min-width: 200px;
        right: -5px;
    }

    .footer-links a {
        margin: 0 15px;
        padding: 6px 12px;
    }
}
