/* Build Next Styling System */

/* CSS Reset & Variables */
:root {
    --bg-dark: #0B0F19;
    --card-bg: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --color-cyan: #06B6D4;
    --color-cyan-glow: rgba(6, 182, 212, 0.15);
    --color-orange: #F97316;
    --color-orange-glow: rgba(249, 115, 22, 0.15);
    --color-success: #10B981;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --transition-speed: 0.3s;
}

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

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

/* Background Glow Spheres */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.glow-sphere-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.glow-sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 42px;
    width: 42px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #FFF 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-country {
    background: linear-gradient(135deg, var(--color-cyan-glow) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.1em;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight-text {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* Glassmorphism Card styling */
.glass-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

/* Form Section */
.form-section {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

.form-card {
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.05);
}

/* Tabs */
.tab-header {
    display: flex;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1.25rem;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    z-index: 2;
    outline: none;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-orange));
    transition: left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.form-body {
    padding: 2.25rem;
    position: relative;
}

.feedback-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.form-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Form Inputs */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.required {
    color: var(--color-orange);
}

input, select, textarea {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    outline: none;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px var(--color-cyan-glow);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

textarea {
    resize: vertical;
}

/* Submit Buttons */
.submit-btn {
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0891B2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: opacity var(--transition-speed), transform 0.1s;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.submit-btn:hover {
    opacity: 0.95;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn.accent {
    background: linear-gradient(135deg, var(--color-orange) 0%, #EA580C 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

/* Success State */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-state.active {
    display: flex;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-success);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 450px;
    line-height: 1.6;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.reset-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Engines Section */
.engines-section {
    width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.engine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.engine-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.engine-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.04);
}

.engine-icon {
    font-size: 2.25rem;
}

.engine-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.engine-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Comparison Section */
.comparison-section {
    width: 100%;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 700;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.feature-name {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.highlight-th {
    color: var(--color-cyan);
    background-color: rgba(6, 182, 212, 0.05) !important;
    border-bottom: 2px solid var(--color-cyan);
}

.highlight-td {
    color: var(--text-primary);
    background-color: rgba(6, 182, 212, 0.02);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: auto;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    .engine-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-body {
        padding: 1.5rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* Autocomplete Dropdown */
.autocomplete-wrapper {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111827;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    margin-top: 0.25rem;
}

.suggestions-dropdown.active {
    display: flex;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    font-size: 0.9rem;
    text-align: left;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.highlighted {
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan);
}
