:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --secondary-color: #8b5cf6;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --accent-color: #60a5fa;
    --gradient-start: #3b82f6;
    --gradient-mid: #6366f1;
    --gradient-end: #8b5cf6;
    --glow-color: rgba(59, 130, 246, 0.5);
    --neon-glow: 0 0 10px rgba(59, 130, 246, 0.7), 0 0 20px rgba(59, 130, 246, 0.5);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-long: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 999;
    transition: transform 0.3s ease;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Section - Modern */
.hero {
    position: relative;
    padding: 10rem 2rem 8rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Particle Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10zM10 10c0-5.523-4.477-10-10-10S0 4.477 0 10s4.477 10 10 10 10-4.477 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm32-8c0 4.418-3.582 8-8 8s-8-3.582-8-8 3.582-8 8-8 8 3.582 8 8z' fill='%233b82f6' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: particleMove 60s linear infinite;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

@keyframes particleMove {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

/* Search Form - Modern */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.7);
    padding: 0.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.search-form.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.3rem 2rem;
    border: none;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-color);
    font-size: 1.1rem;
    outline: none;
    border-radius: 1rem;
    transition: var(--transition-base);
    border: 1px solid rgba(96, 165, 250, 0.2);
    font-family: var(--font-primary);
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.input-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.search-input:focus ~ .input-decoration {
    transform: scaleX(1);
}

.search-button {
    padding: 1.3rem 2.5rem;
    border: none;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-secondary);
}

.search-button.pulse-on-hover:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.search-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: var(--transition-base);
}

.search-button:hover .search-icon {
    transform: translateX(3px);
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--gradient-mid));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-base);
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.search-button:hover::before {
    opacity: 1;
}

.search-button.loading {
    position: relative;
    color: transparent;
}

.search-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section - Modern */
.features {
    padding: 8rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    display: inline-block;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: var(--transition-long);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.hover-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-2xl);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    z-index: -1;
    border-radius: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover::before {
    opacity: 0.3;
    animation: borderGlow 3s linear infinite;
}

.feature-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

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

.feature-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Integration Section - Enhanced */
.integration {
    padding: 8rem 2rem;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
}

.integration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.integration-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.integration-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.language-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.language-selector::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.language-tab {
    padding: 1.25rem 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.language-tab:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateX(5px);
}

.language-tab.active {
    background: rgba(96, 165, 250, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

.language-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
}

.language-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition-base);
}

.language-tab:hover .language-icon {
    opacity: 1;
    transform: scale(1.1);
}

.language-tab.active .language-icon {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--accent-color));
}

.language-name {
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--text-color);
    transition: var(--transition-base);
}

.language-tab:hover .language-name {
    color: var(--accent-color);
}

.code-display {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 100%;
    transition: var(--transition-long);
}

.code-display:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.code-header {
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-title {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-title svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.code-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: var(--transition-base);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.code-copy:hover {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.code-copy.copied {
    color: var(--success-color);
}

.code-content {
    padding: 0.5rem;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 0.5;
    color: #e2e8f0;
    white-space: pre;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.5);
    counter-reset: line;
}

.code-content div {
    position: relative;
    padding-left: 3em;
    counter-increment: line;
    min-height: 1.2em;
}

.code-content div::before {
    content: counter(line);
    position: absolute;
    left: 0.5em;
    color: var(--text-muted);
    font-size: 0.85em;
    width: 2em;
    text-align: right;
    padding-right: 0.5em;
}

.code-content .keyword {
    color: #60a5fa;
}

.code-content .string {
    color: #86efac;
}

.code-content .comment {
    color: #64748b;
    font-style: italic;
}

.code-content .function {
    color: #f472b6;
}

.code-content .variable {
    color: #f59e0b;
}

.code-content .number {
    color: #d8b4fe;
}

/* About Section - Modern */
.about {
    padding: 6rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    position: relative;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 1rem;
}

.about-text h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    background: rgba(30, 41, 59, 0.7);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    text-align: center;
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
    perspective: 1000px;
}

.glowing-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: var(--shadow-xl);
    transform: rotateY(15deg);
    transition: var(--transition-long);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.glowing-card:hover {
    transform: rotateY(5deg) translateY(-10px);
    box-shadow: 0 35px 60px rgba(59, 130, 246, 0.3);
}

.glowing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        transparent,
        rgba(96, 165, 250, 0.1)
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
}

/* CTA Section - Modern */
.cta {
    padding: 10rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.15));
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.cta p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.3rem 2.8rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Result Container - Modern */
#resultContainer {
    display: none;
    width: 100%;
    margin: 0;
    padding: 6rem 2rem;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-long);
}

#resultContainer.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-content {
    max-width: 1400px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.result-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    background: linear-gradient(to right, var(--accent-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.export-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 0.75rem;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.export-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.export-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.export-btn:hover svg {
    transform: translateY(-2px);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.result-card {
    background: rgba(30, 41, 59, 0.7);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: var(--transition-base);
}

.result-card.expandable:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.result-card h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.result-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

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

.info-item {
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.info-value {
    font-weight: 500;
    font-size: 1.1rem;
    color: white;
    word-break: break-word;
}

.map-container {
    grid-column: 1 / -1;
    height: 500px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(15, 23, 42, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-long);
    margin-top: 1rem;
}

.map-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

#map {
    height: 100%;
    width: 100%;
}

/* Custom Map Theme */
.leaflet-container {
    background: rgba(15, 23, 42, 0.9) !important;
}

.leaflet-tile {
    filter: brightness(0.8) contrast(1.2) saturate(0.8) hue-rotate(180deg) !important;
}

.leaflet-control-attribution {
    background: rgba(30, 41, 59, 0.7) !important;
    color: var(--text-muted) !important;
    font-size: 11px !important;
}

.leaflet-control-attribution a {
    color: var(--accent-color) !important;
}

.leaflet-bar {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    background: rgba(30, 41, 59, 0.7) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3) !important;
    color: var(--text-color) !important;
}

.leaflet-bar a:hover {
    background: rgba(96, 165, 250, 0.1) !important;
    color: var(--accent-color) !important;
}

.custom-marker {
    background: var(--accent-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
    position: relative;
}

.custom-marker::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.3);
    animation: pulse 2s infinite;
}

/* Security Section */
.security-section {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: var(--transition-base);
    margin-top: 2rem;
}

.security-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.security-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.security-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Status Indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0.5;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-indicator.safe {
    background-color: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.status-indicator.warning {
    background-color: var(--warning-color);
    box-shadow: 0 0 10px var(--warning-color);
}

.status-indicator.danger {
    background-color: var(--danger-color);
    box-shadow: 0 0 10px var(--danger-color);
}

.status-indicator.unknown {
    background-color: var(--text-color);
    opacity: 0.3;
}

.status-text.safe {
    color: var(--success-color);
}

.status-text.warning {
    color: var(--warning-color);
}

.status-text.danger {
    color: var(--danger-color);
}

.status-text.unknown {
    color: var(--text-muted);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* Footer - Modern */
.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    padding: 6rem 0 3rem;
    position: relative;
    backdrop-filter: blur(5px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-section {
    position: relative;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: var(--transition-base);
}

.footer-links a:hover svg {
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    padding-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 1.3rem;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .about-content {
        gap: 3rem;
    }
    
    .integration-grid {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 8rem 2rem 6rem;
    }
    
    .about {
        padding: 4rem 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .glowing-card {
        transform: none;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-grid {
        grid-template-columns: 1fr;
    }
    
    .language-selector {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .language-selector::before {
        display: none;
    }
    
    .language-tab {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 5rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .security-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    .feature-card {
        padding: 2.5rem 1.5rem;
    }
    
    .about {
        padding: 3rem 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    .integration {
        padding: 6rem 1rem;
    }
    
    .language-tab {
        padding: 1rem;
    }
}

/* Animation classes */
.slide-in {
    animation: slideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}