/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    background-image: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(240,240,240,0.8));
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
    background-image: linear-gradient(to bottom right, rgba(18,18,18,0.9), rgba(30,30,30,0.9));
}

body.dark-mode .search-box {
    background-color: #2d2d2d;
    border-color: #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode input[type="text"] {
    background-color: #2d2d2d;
    color: #f0f0f0;
}

body.dark-mode .feature-card, 
body.dark-mode .about-section,
body.dark-mode .language-dropdown {
    background-color: #2d2d2d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

body.dark-mode .dark-mode-toggle i,
body.dark-mode .language-selector i {
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.dark-mode .language-option:hover {
    background-color: #444;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #4285f4, #ea4335, #fbbc05, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

.logo p {
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 1px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dark Mode Toggle and Language Selector */
.dark-mode-toggle, .language-selector {
    cursor: pointer;
    font-size: 1.8rem;
    transition: color 0.3s; /* Ondoa transform */
}

.dark-mode-toggle:hover, .language-selector:hover {
    color: #4285f4; /* Badilisha rangi wakati wa hover */
}

.dark-mode-toggle i, .language-selector i {
    color: #333;
    transition: color 0.3s;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 150px;
    z-index: 100;
    display: none;
    overflow: hidden;
    border: 1px solid #eee;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f0f0f0;
}

/* Search Container Styles */
.search-container {
    margin: 40px 0;
}

.search-box {
    display: flex;
    border: none;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.25);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.search-box button {
    background: linear-gradient(45deg, #4285f4, #34a853);
    color: white;
    border: none;
    padding: 0 35px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.search-box button:hover {
    background: linear-gradient(45deg, #3b78e7, #2d9348);
}

.search-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-options label {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid rgba(66, 133, 244, 0.2);
}

.search-options label:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

body.dark-mode .search-options label:hover {
    background-color: rgba(66, 133, 244, 0.2);
}

/* Proxy Toggle Styles */
.proxy-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .proxy-toggle-container {
    background-color: rgba(45, 45, 45, 0.8);
}

.proxy-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #4caf50;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#proxy-switch {
    display: none;
}

#proxy-switch:not(:checked) + .toggle-slider {
    background-color: #f44336;
}

#proxy-switch:not(:checked) + .toggle-slider::before {
    transform: translateX(30px);
}

.toggle-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.toggle-text i {
    font-size: 1.2rem;
    color: #4caf50;
    transition: color 0.3s;
}

/* Info Panel Styles */
.info-panel {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .info-panel {
    background-color: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(80, 80, 80, 0.2);
}

.ip-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.ip-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.ip-info p::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f023";
    color: #4caf50;
}

.secure {
    color: #4caf50;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* IP Change Animation */
@keyframes ipChange {
    0% { color: inherit; transform: scale(1); }
    50% { color: #4285f4; transform: scale(1.2); }
    100% { color: inherit; transform: scale(1); }
}

.ip-changed {
    animation: ipChange 1s ease;
}

/* Ad Container Styles */
.ad-container {
    margin: 30px 0;
}

.ad-banner {
    background-color: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.ad-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .ad-banner {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-label {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 1px;
}

#ad-frame, #side-ad-1, #side-ad-2 {
    width: 100%;
    height: 150px;
    border: none;
}

.side-ads-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.side-ad {
    margin: 0;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(66, 133, 244, 0.15);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(45deg, #4285f4, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

body.dark-mode .feature-card p {
    color: #aaa;
}

/* About Section */
.about-section {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4285f4;
    text-align: center;
}

.about-section h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #333;
}

body.dark-mode .about-section h3 {
    color: #f0f0f0;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Download App Section */
.download-app-section {
    margin: 40px auto;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-app-section h2 {
    font-size: 1.8rem;
    color: #4285f4;
    margin-bottom: 10px;
}

.download-app-section p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
}

.download-button {
    background-color: #4285f4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #306bbf;
}

/* Loading Spinner */
/* Loading Spinner Overlay */
.loading-spinner {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.96);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    transition: opacity 0.3s;
}

.loading-spinner.active {
    display: flex;
}

.loading-spinner .spinner {
    border: 7px solid #222;
    border-top: 7px solid #4285f4;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.loading-spinner p {
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 0 2px 8px #000;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 30px;
    background-color: #f5f5f5;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode footer {
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3367d6;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    animation: fadeIn 0.8s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ip-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-options {
        gap: 10px;
    }
    
    .search-options label {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .proxy-toggle-container {
        margin-top: 20px;
        padding: 15px;
    }
    
    .proxy-toggle {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .toggle-text {
        font-size: 0.9rem;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .side-ads-container {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 25px;
    }
}

/* Blog Preview Styles */
.blog-preview {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 32px;
}

.blog-title {
  color: #1a73e8;
  text-align: center;
  margin-bottom: 18px;
}
