/* ===== MODERN HTML5 STYLES WITH TECH ANIMATIONS ===== */

/* CSS Custom Properties for Theming */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --accent-color: #2ecc71;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    
    /* Tech colors - muted and professional */
    --tech-blue: #3b82f6;
    --tech-slate: #64748b;
    --tech-gray: #94a3b8;
    --tech-green: #10b981;
    --tech-purple: #8b5cf6;
    --tech-orange: #f59e0b;
    
    /* Dark theme colors */
    --dark-bg-primary: #0f172a;
    --dark-bg-secondary: #1e293b;
    --dark-text-primary: #f1f5f9;
    --dark-text-secondary: #94a3b8;
    --dark-border: #334155;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --border-color: var(--dark-border);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100vh;
}

/* ===== ANIMATED BACKGROUNDS ===== */

/* Tech Background Container */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="10" fill="%23667eea" opacity="0.3">010110100101</text></svg>') repeat;
    animation: matrixFall 20s linear infinite;
    opacity: 0.15;
    z-index: 1;
}

@keyframes matrixFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--primary-color);
}

.particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particles::after {
    top: 60%;
    left: 80%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-10px); }
    75% { transform: translateY(-20px) translateX(5px); }
}

/* Circuit Pattern */
.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px),
        linear-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.08;
    animation: circuitPulse 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.12; }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    /* Additional stability fixes */
    transform-origin: center;
    will-change: transform;
    pointer-events: auto;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.theme-icon {
    transition: transform 0.3s ease;
}

/* ===== LANGUAGE TOOL CARD ===== */
.language-tool-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.language-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px 20px 0 0;
}

.tool-header {
    margin-bottom: 25px;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.tool-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.language-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.language-card-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.language-card-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.language-card-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.language-card-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.lang-flag {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.lang-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lang-code {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .language-tool-card {
        margin: 20px;
        padding: 20px;
    }
    
    .language-buttons-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .language-card-btn {
        padding: 15px 10px;
    }
    
    .lang-flag {
        font-size: 1.5rem;
    }
}

/* ===== HERO LANGUAGE SELECTOR (OLD) ===== */
.hero-language-selector {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 15px;
}

.lang-selector-title {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-lang-buttons {
    display: inline-flex;
    gap: 12px;
    background: rgba(102, 126, 234, 0.8);
    padding: 12px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(102, 126, 234, 0.6);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.hero-lang-btn {
    padding: 14px 26px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-lang-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #5a67d8;
}

.hero-lang-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-lang-buttons {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .hero-lang-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9998;
    backdrop-filter: blur(10px);
    background: rgba(102, 126, 234, 0.9);
    border-radius: 25px;
    padding: 8px;
    border: 2px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    opacity: 1;
    visibility: visible;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.lang-btn span {
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .language-selector {
        right: 10px;
        top: 70px;
        padding: 6px;
    }
    
    .lang-btn {
        min-width: 50px;
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .lang-btn span {
        font-size: 8px;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.05;
    z-index: 1;
    animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.08; }
}

/* Add tech grid overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--secondary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 1;
    animation: techGrid 12s linear infinite;
}

@keyframes techGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tech-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: techGlow 3s ease-in-out infinite;
}

@keyframes techGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.highlight-text {
    color: var(--accent-color);
    position: relative;
}

.brand-text {
    display: block;
    font-size: 0.6em;
    color: var(--primary-color);
    font-weight: 400;
    margin-top: 8px;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typing Animation */
.typing-animation::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 1s ease-out 1s both;
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s ease;
    overflow: hidden;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--tech-cyan);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.stat-item:hover .stat-number {
    color: var(--tech-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

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

.stat-progress {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.stat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan));
    border-radius: 3px;
    width: 0%;
    transition: width 2s ease-in-out 1.5s;
    position: relative;
    overflow: hidden;
}

.stat-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Glitch Effects */
.glitching {
    animation: glitch 0.3s ease-in-out infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

.stat-glow {
    animation: statGlow 1s ease-in-out;
}

@keyframes statGlow {
    0%, 100% {
        box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 15px 30px rgba(0, 255, 255, 0.6), 
                    0 0 50px rgba(0, 255, 255, 0.4);
    }
}

.typing-cursor {
    animation: blink 1s infinite;
    color: var(--tech-cyan);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== LOADING ANIMATIONS ===== */

/* Global Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

/* Tech Loader */
.tech-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.loader-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: techSpin 2s linear infinite;
}

.loader-ring:nth-child(1) {
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--primary-color);
    animation-duration: 2s;
}

.loader-ring:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 10px;
    border-right: 2px solid var(--secondary-color);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    border-bottom: 2px solid var(--accent-color);
    animation-duration: 1s;
}

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

.loader-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== MODERN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: -30px;
    margin-bottom: 40px;
    font-style: italic;
}

/* ===== MODERN FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px 0;
    margin-top: 60px;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Partners Section */
.partners-section {
    text-align: center;
}

.partners-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.partner-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.partner-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 15px;
}

.partner-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    border: 1px solid var(--border-color);
}

.partner-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.partner-info {
    flex: 1;
    text-align: left;
}

.partner-info h5 {
    color: var(--tech-blue);
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.partner-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.partner-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--tech-green), var(--tech-cyan));
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Different badge colors for different partners */
.partner-card:nth-child(2) .partner-badge {
    background: linear-gradient(90deg, var(--tech-purple), var(--tech-blue));
}

/* Copyright */
.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-stats,
    .stats-grid {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: 140px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .partners-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-card {
        width: 100%;
        max-width: 350px;
    }
    
    .partner-link {
        flex-direction: column;
        text-align: center;
    }
    
    .partner-info {
        text-align: center;
    }
    
    .partner-logo-container {
        width: 80px;
        height: 80px;
    }
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-stat {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 5px 10px;
    background: var(--bg-primary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer-stat:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        z-index: 9999;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header სტილები */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* IP Info Section */
.ip-info {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.ip-info h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--tech-blue);
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid var(--tech-blue);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.info-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== PROXY/VPN DETECTION STYLES ===== */
.proxy-detection-result {
    margin-top: 15px;
}

.detection-item {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--tech-blue);
    background: rgba(102, 126, 234, 0.05);
}

.detection-item.warning {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.detection-item.success {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.proxy-detected {
    color: #ff9800;
    font-weight: bold;
}

.direct-connection {
    color: #4caf50;
    font-weight: bold;
}

.proxy-headers, .vpn-indicators {
    margin-top: 8px;
}

.header-item, .indicator-item {
    padding: 4px 8px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-item code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    color: var(--tech-cyan);
}

.warning-card {
    border-left-color: #ff9800;
    background: #fff8e1;
}

.info-item {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.info-item strong {
    color: var(--text-primary);
    display: inline-block;
    min-width: 80px;
    font-weight: 600;
}

/* Browser item styling */
.browser-item {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.browser-item strong {
    color: var(--text-primary);
    display: inline-block;
    min-width: 100px;
    font-weight: 600;
}

.ip-address {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 1.2rem;
    color: var(--tech-blue);
    font-weight: bold;
    background: white;
    padding: 6px 12px;
    border-radius: 5px;
    border: 2px solid var(--tech-blue);
}

.secondary-ip {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    color: var(--tech-slate);
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.user-agent {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    word-break: break-all;
    margin-top: 5px;
    color: var(--text-secondary);
}

.enabled {
    color: #4caf50;
    font-weight: bold;
}

.disabled {
    color: #f44336;
    font-weight: bold;
}

.proxy-detected {
    color: #ff9800;
    font-weight: bold;
}

.proxy-headers, .vpn-indicators {
    margin: 8px 0;
    padding-left: 20px;
}

.proxy-headers li, .vpn-indicators li {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.proxy-headers code {
    background: #e8e8e8;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.geo-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.geo-item {
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--tech-slate);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.highlighted-isp {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid var(--tech-cyan) !important;
    border-left: 4px solid var(--tech-cyan) !important;
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    grid-column: 1 / -1;
    color: var(--text-primary);
}

.isp-highlight {
    color: var(--tech-cyan);
    font-weight: 600;
    background: rgba(0, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* WHOIS Examples */
.whois-examples {
    margin-top: 10px;
    text-align: center;
}

.whois-example {
    cursor: pointer;
    color: var(--tech-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 2px;
}

.whois-example:hover {
    color: var(--tech-slate);
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* WHOIS Result Styling - Dual Theme */
.result-container.whois-result {
    background: #1e1e1e;
    color: #e0e0e0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border-radius: 8px;
    padding: 0;
    margin-top: 15px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
    max-height: 600px;
    overflow-y: auto;
    border: 2px solid #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.result-container.whois-result::-webkit-scrollbar {
    width: 8px;
}

.result-container.whois-result::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.result-container.whois-result::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.result-container.whois-result::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* WHOIS კონტენტის სტილიზაცია */
.whois-header {
    color: #4fc3f7;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 15px;
    font-size: 16px;
}

/* ძირითადი ინფორმაციის სექცია - მუქი ფონი */
.whois-section {
    margin: 0;
    padding: 20px;
    border-bottom: 2px solid #444;
}

.whois-section:first-child {
    background: #1e1e1e;
    border-radius: 8px 8px 0 0;
}

/* Raw Data სექცია - ღია ფონი */
.whois-section:last-child {
    background: #f8f9fa;
    color: #2c3e50;
    border-bottom: none;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid #e9ecef;
}

.whois-key {
    color: #66bb6a;
    font-weight: 700;
    display: inline-block;
    min-width: 160px;
}

.whois-value {
    color: #ffa726;
    font-weight: 500;
}

.whois-organization {
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.whois-country {
    color: #42a5f5;
    font-weight: 600;
}

.whois-ip-range {
    color: #ec407a;
    font-weight: 600;
    font-family: monospace;
    background: rgba(236, 64, 122, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.whois-date {
    color: #9e9e9e;
    font-style: italic;
}

/* Raw Data Header - ღია ფონისთვის */
.whois-raw-header {
    color: #d32f2f;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-decoration: underline;
    font-size: 16px;
}

/* Raw Data Pre - გაუმჯობესებული */
.whois-raw-data {
    background: #ffffff;
    color: #37474f;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin: 15px 0 0 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.whois-separator {
    color: #666;
    margin: 15px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

/* ISP Analysis Modal */
.isp-analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.isp-analysis-content {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 30px rgba(0, 255, 255, 0.1);
}

.isp-analysis-content h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.4rem;
    text-align: center;
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    border-bottom: 2px solid var(--tech-blue);
    padding-bottom: 10px;
}

.isp-detail {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.isp-detail:last-child {
    border-bottom: none;
}

.isp-detail strong {
    color: var(--tech-cyan);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.isp-detail span {
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.close-btn {
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.small-button {
    background: var(--tech-blue);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.small-button:hover {
    background: #5a6fd8;
}

.warning {
    color: #ff5722;
    font-weight: bold;
}

/* Protocol and Connection Status Badges */
.protocol-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-list {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--tech-blue);
    font-weight: 500;
}

/* Tools Section */
.tools-section {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 40px;
}

.tools-section h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid var(--tech-blue);
    padding-bottom: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    perspective: 1000px;
}

/* Special full-width cards for tools with long outputs */
.tool-card.full-width {
    grid-column: 1 / -1;
}

/* Tool Card სტილები - Enhanced Tech Look */
.tool-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan), var(--tech-green));
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.tool-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--tech-cyan);
}

.tool-card:nth-child(odd):hover {
    border-color: var(--tech-blue);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 0 20px rgba(37, 99, 235, 0.3);
}

.tool-card:nth-child(3n):hover {
    border-color: var(--tech-green);
    box-shadow: 
        0 20px 40px rgba(0, 255, 65, 0.15),
        0 0 20px rgba(0, 255, 65, 0.3);
}

.tool-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover h3 {
    color: var(--tech-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Form სტილები */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Port form with two inputs in a row */
.port-form {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: end;
}

.port-form button {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.tool-input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tool-input:focus {
    outline: none;
    border-color: var(--tech-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tool-input::placeholder {
    color: #999;
    font-style: italic;
}

.tool-button {
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--tech-slate) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.tool-button:active {
    transform: translateY(0);
}

.tool-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Container */
.result-container {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--tech-blue);
    margin-top: 15px;
    min-height: 50px;
    display: none;
}

.result-container.show {
    display: block;
    animation: slideIn 0.3s ease;
}

/* Special styling for traceroute results */
.result-container.traceroute-result {
    background: #1a1a1a;
    color: #e0e0e0;
    border-left: 4px solid #4CAF50;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'SF Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    width: 100%;
    max-width: none;
}

.result-container.traceroute-result::-webkit-scrollbar {
    width: 8px;
}

.result-container.traceroute-result::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.result-container.traceroute-result::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

.result-container.traceroute-result::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* Traceroute hop highlighting */
.traceroute-hop {
    padding: 4px 0;
    border-left: 3px solid transparent;
    padding-left: 12px;
    margin: 3px 0;
    transition: all 0.3s ease;
    font-weight: 400;
}

.traceroute-hop:hover {
    background: rgba(76, 175, 80, 0.15);
    border-left-color: #4CAF50;
    padding-left: 16px;
}

.traceroute-hop-number {
    color: #4CAF50;
    font-weight: bold;
    display: inline-block;
    width: 25px;
    text-align: right;
    margin-right: 8px;
}

.traceroute-ip {
    color: #64B5F6;
    font-weight: 600;
    text-decoration: none;
}

.traceroute-hostname {
    color: #FFB74D;
    font-weight: 500;
}

.traceroute-time {
    color: #A5D6A7;
    font-weight: 400;
    margin: 0 4px;
}

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

.result-success {
    border-left-color: #27ae60;
    background: #f0fff4;
}

.result-error {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.result-loading {
    border-left-color: #f39c12;
    background: #fffbf0;
}

.result-container pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.result-container .success-message {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-container .error-message {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-container .loading-message {
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--tech-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* MAC Address Examples */
.mac-examples {
    margin-top: 10px;
    text-align: center;
}

.mac-example {
    cursor: pointer;
    color: var(--tech-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mac-example:hover {
    color: var(--tech-slate);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* All Examples - Unified Styling */
.network-examples, .mask-examples, .whois-examples, .mac-examples, .port-examples, .ping-examples, .traceroute-examples {
    margin: 5px 0 8px 0;
    text-align: center;
    line-height: 1.1;
}

.network-examples small, .mask-examples small, .whois-examples small, .mac-examples small, .port-examples small, .ping-examples small, .traceroute-examples small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
    display: inline;
}

.network-example, .mask-example, .whois-example, .mac-example, .port-example, .ping-example, .traceroute-example {
    cursor: pointer;
    color: var(--tech-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0 2px;
    border-radius: 2px;
    white-space: nowrap;
    display: inline;
    font-size: 0.75rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.network-example:hover, .mask-example:hover, .whois-example:hover, .mac-example:hover, .port-example:hover, .ping-example:hover, .traceroute-example:hover {
    color: white;
    background: var(--tech-blue);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Location Map Styles */
.location-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
    border: 2px solid var(--border-color);
    position: relative;
    background: var(--bg-primary);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    position: relative;
    overflow: hidden;
}

.map-loading {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.location-item {
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--tech-blue);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.location-item strong {
    color: var(--tech-blue);
}

/* Interactive Map (when loaded) */
.interactive-map {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

/* Map Animation */
.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: mapShimmer 2s ease-in-out infinite;
}

@keyframes mapShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card.full-width {
        grid-column: 1;
    }
    
    .geo-info {
        grid-template-columns: 1fr;
    }
    
    .tool-form {
        gap: 10px;
    }
    
    .result-container.traceroute-result {
        font-size: 12px;
        line-height: 1.6;
        max-height: 300px;
    }
    
    .traceroute-hop-number {
        width: 20px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .ip-info, .tools-section {
        padding: 20px;
    }
    
    .tool-card {
        padding: 20px;
    }
}

/* ===== DARK MODE PROXY/VPN DETECTION STYLES ===== */
[data-theme="dark"] .proxy-headers code {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
    border: 1px solid var(--dark-border);
}

[data-theme="dark"] .header-item {
    background: rgba(102, 126, 234, 0.1);
    color: var(--dark-text-primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .indicator-item {
    background: rgba(102, 126, 234, 0.1);
    color: var(--dark-text-primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .header-item code {
    background: var(--dark-bg-primary);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

[data-theme="dark"] .detection-item {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .detection-item.warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

[data-theme="dark"] .detection-item.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .proxy-detected {
    color: #ffab40;
}

[data-theme="dark"] .direct-connection {
    color: #66bb6a;
}

/* Status explanation styling */
.status-explanation {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
}

[data-theme="dark"] .status-explanation {
    color: var(--dark-text-secondary);
}