@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* General Layout & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    cursor: crosshair;
}

body {
    background-color: #0a192f;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #020c1b 0%, #0f2042 50%, #020c1b 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    font-family: 'Outfit', sans-serif;
    animation: fadeSlideUp 1s ease-out forwards;
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Top Announcement Bar */
.top-bar {
    background: #020c1b;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    color: #8892b0;
    font-size: 13px;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a:hover {
    color: #00ff88;
}

/* Typography Defaults */
h1,
h2,
h3 {
    color: #ffffff;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.brand-text {
    background: linear-gradient(90deg, #00ff88, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #8892b0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00ff88;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #8892b0;
    font-size: 14px;
    margin-left: 20px;
}

.lang-switcher span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-switcher span:hover,
.lang-switcher span.active {
    color: #00ff88;
    font-weight: 700;
}

.nav-cta {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88 !important;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 50px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.25;
    padding: 10px 0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a0aab2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 20px;
    color: #8892b0;
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.5;
}

/* Features Section */
.features-section {
    padding: 80px 5%;
    background: rgba(255, 255, 255, 0.01);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

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

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 25px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.feature-card p {
    color: #8892b0;
    line-height: 1.7;
    font-size: 15px;
}

/* Tool Section */
.tool-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Glassmorphism Container (From previous design) */
.container {
    background: rgba(17, 34, 64, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    padding: 50px 45px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    max-width: 560px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.container h2 {
    font-size: 34px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #00ff88, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.container .subtitle {
    color: #8892b0;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 400;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00b35f);
}

/* Forms and Inputs */
input[type="file"],
input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 25px;
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.15);
    color: #ffffff;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="file"] {
    border: 2px dashed rgba(100, 255, 218, 0.3);
    padding: 30px 20px;
    background: rgba(10, 25, 47, 0.3);
    text-align: center;
}

input[type="file"]:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

input[type="file"]::file-selector-button {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 10px 20px;
    border-radius: 8px;
    margin-right: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
    background-color: rgba(0, 0, 0, 0.5);
}

/* Buttons */
.action-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: inline-block;
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: #8892b0;
}

.action-btn.secondary:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.hero-btn {
    width: auto;
    min-width: 220px;
    padding: 16px 36px !important;
    font-size: 17px !important;
    font-weight: 500;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    letter-spacing: 0.5px;
}

.hero-btn:hover {
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.5);
}

.hero-btn.secondary {
    box-shadow: none;
    border: 2px solid #00ff88;
}

.hero-btn.secondary:hover {
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

/* Tabs inside Container */
.tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: #8892b0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s;
}

.tab-btn.active {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.tab-btn:hover:not(.active) {
    color: #ffffff;
}

/* Form Sections inside Container */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#previewImage {
    max-width: 100%;
    max-height: 200px;
    margin-bottom: 25px;
    border-radius: 10px;
    display: none;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

#resultBox {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: #00ff88;
    display: none;
    word-wrap: break-word;
}

/* Loader Overlay inside Container */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-top-color: #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: #8892b0;
    font-size: 14px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(17, 34, 64, 0.95);
    border-left: 4px solid #00ff88;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #ff3366;
}

.toast.error .toast-icon {
    color: #ff3366;
}

.toast-icon {
    margin-right: 12px;
    font-size: 18px;
    color: #00ff88;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        padding-top: 15px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .nav-links a {
        display: none;
    }

    /* Hide text links on mobile */
    .lang-switcher {
        margin-left: 0;
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 14px 20px !important;
        font-size: 16px !important;
    }

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

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

    .container {
        padding: 30px 20px;
        max-width: 95%;
    }
}