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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
    color: #f8fafc;
    min-height: 100vh;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,255,255,0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit';
    letter-spacing: 1px;
}
.navbar .logo span {
    color: #00ffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}
.nav-links li a {
    font-weight: 500;
    font-size: 14px;
    color: #cbd5e1;
}
.nav-links li a:hover {
    color: #00ffff;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 25px; height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

/* BTN */
.btn-primary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-primary:hover {
    background: #00ffff;
    color: #0f172a;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn-main, .btn-action {
    display: inline-block;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}
.btn-main:hover, .btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.5);
}

.btn-copy, .btn-download {
    background: #334155;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-copy:hover, .btn-download:hover {
    background: #475569;
}

.pulse {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}
.hero h1 span {
    background: -webkit-linear-gradient(45deg, #00ffff, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.6;
}

/* Container Main */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 25px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
}
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}
input:focus, textarea:focus {
    border-color: #00ffff;
}
textarea {
    resize: vertical;
    min-height: 100px;
}

.info-box {
    background: rgba(0, 255, 255, 0.05);
    padding: 15px;
    border-left: 4px solid #00ffff;
    border-radius: 5px;
    margin-bottom: 20px;
}

.result-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}
.result-container canvas {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    display: block;
    margin: 15px 0;
}

.limit-status {
    margin-top: 10px;
    font-size: 13px;
    color: #94a3b8;
}

/* File Upload input */
.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 40px;
    border: 2px dashed #3a7bd5;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(58, 123, 213, 0.05);
}
.file-drop-area:hover {
    background: rgba(58, 123, 213, 0.1);
}
.file-msg {
    color: #00ffff;
    font-weight: 500;
}
.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #334155;
    padding: 15px 0;
}
.faq-question {
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    margin-top: 10px;
    color: #94a3b8;
    display: none;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Footer */
footer {
    background: #0b1120;
    padding: 50px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: #00ffff;
    font-size: 24px;
}
.footer-col h4 {
    color: #fff;
}
.footer-col p, .footer-col ul li a {
    color: #94a3b8;
    line-height: 1.8;
}
.social-links, .extra-links {
    list-style: none;
}
.social-links li a:hover, .extra-links li a:hover {
    color: #00ffff;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    color: #64748b;
    font-size: 14px;
}
.legal-links {
    display: flex;
    gap: 15px;
}
.legal-links a:hover {
    color: #cbd5e1;
}

/* Translate widget styling adjust */
.goog-te-gadget-simple {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    padding: 5px !important;
}
.goog-te-gadget-simple .goog-te-menu-value span {
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-extra {
        display: none; 
    }
    .hamburger {
        display: flex;
    }
    .hero h1 {
        font-size: 36px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Modal CSS */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal.hidden {
    display: none !important;
}
.modal-content {
    background: #1e293b;
    width: 100%;
    padding: 30px;
    border-radius: 15px;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #cbd5e1;
    cursor: pointer;
}
.close-modal:hover {
    color: #ef4444;
}
