/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #ffffff;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Mobile First Approach */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 3px solid #007bff;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1400px;
}

.logo {
    color: #007bff;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 101;
}

.logo:hover {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.logo i {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.logo-text {
    display: inline;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg);
}

.nav {
    display: flex;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #007bff;
    background: #f8f9fa;
    border-color: #007bff;
    transform: none;
}

.nav-link.active {
    color: #ffffff;
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        width: 90%;
        text-align: center;
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 10px;
    }
    
    .nav-link:hover {
        transform: none;
        background: var(--background-color);
    }
    
    .nav-link.active {
        transform: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .nav {
        width: 90%;
    }
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    .main {
        padding: 1rem 0;
    }
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

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

/* Cards */
.card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .card:hover {
        transform: none;
    }
}

.card-header {
    background: #f8f9fa;
    color: #333;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .card-header {
        padding: 1.5rem;
    }
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="22.5" cy="22.5" r="0.8" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    color: #007bff;
    font-weight: 600;
}

.card-header h2 i {
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.card-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.form-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

@media (max-width: 768px) {
    .form-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px; /* Touch target size */
}

@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(149, 165, 166, 0.3);
}

/* Results */
.results {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
    animation: shimmer 3s ease-in-out infinite;
}

.results h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.results h3 i {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

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

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.result-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.result-value {
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Ping Results */
.result-section {
    margin-bottom: 2rem;
}

.ping-details,
.trace-details {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
    border: 1px solid #e1e5e9;
}

/* CTA Section */
.cta-section {
    margin-top: 3rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 50%, var(--success-color) 100%);
    color: white;
    padding: 3.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(240, 147, 251, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

.cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.cta-content h3 i {
    animation: sparkle 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    position: relative;
    z-index: 2;
    cursor: pointer;
    border: none;
}

.cta-content .btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.cta-content .btn-cta i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Loading States */
.loading {
    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;
}

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

/* Error States */
.error {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #fecaca;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Success States */
.success {
    color: #27ae60;
    background: #f0f9f4;
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Latency Test Styles */
.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    width: 100%;
    justify-content: center;
}

.latency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.latency-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.latency-item:hover {
    transform: translateY(-5px);
}

.latency-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.latency-content {
    flex: 1;
}

.latency-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.latency-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
}

.latency-unit {
    font-size: 1rem;
    color: #666;
    margin-left: 0.5rem;
}

.latency-details {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.latency-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
    animation: shimmer 3s ease-in-out infinite;
}

.latency-details h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.latency-details h4 i {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.latency-details-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.cta-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Speed Test Styles */
.speed-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.speed-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.speed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.speed-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.speed-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.speed-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
    transition: all 0.1s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.speed-unit {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.speed-unit-small {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.speed-details {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--background-color) 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.speed-details h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speed-details h4 i {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.speed-details-content {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* Latency Summary Styles */
.latency-summary {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-icon {
    font-size: 1.2rem;
}

.summary-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.summary-value {
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.summary-unit {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

/* How It Works Section */
.how-it-works {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.how-it-works h3 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.how-it-works ol {
    color: rgba(255, 255, 255, 0.9);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.how-it-works li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.how-it-works code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #fff;
}

/* Hosting Comparison Styles */
.comparison-form {
    margin-bottom: 2rem;
}

.form-section {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.form-section h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.form-section:last-child .form-row {
    grid-template-columns: 1fr;
    justify-content: center;
}

.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: top;
}

.comparison-table tr:hover {
    background: var(--background-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.company-name {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.price {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.2rem;
}

.features {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.features ul {
    margin: 0;
    padding-left: 1.2rem;
}

.features li {
    margin-bottom: 0.25rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.highlight {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-weight: 700;
}

.action-btn.highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.comparison-cta {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 15px;
    text-align: center;
    color: white;
}

.cta-highlight h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-highlight p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Responsive adjustments for hosting comparison */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .comparison-table th {
        font-size: 1rem;
    }
    
    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
}

/* Homepage Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 50%, var(--success-color) 100%);
    border: none;
    border-radius: 25px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-logo i {
    font-size: 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-logo h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

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

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
}

.feature-card i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}


.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.why-choose-us {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 50%, var(--success-color) 100%);
    border-radius: 25px;
    padding: 4rem 2rem;
    margin: 3rem 0;
    border: none;
    box-shadow: 0 20px 40px rgba(240, 147, 251, 0.3);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.why-choose-us h2 {
    text-align: center;
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.why-choose-us h2 i {
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.feature-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: block;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: floatIcon 3s ease-in-out infinite;
}

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

.feature-item h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Homepage */
@media (max-width: 768px) {
    .hero-logo h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .why-choose-us h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 3px solid #3498db;
}

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

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.footer-section h4 {
    color: #ecf0f1;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom-content {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* DNS Lookup Styles */
.dns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.dns-record {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dns-record::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    border-radius: 16px 16px 0 0;
}

.dns-record:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.dns-record.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.dns-record.full-width::before {
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c, #f39c12, #2ecc71);
}

/* MX kayıtları için özel stil */
.dns-record.mx-record {
    min-height: 120px;
    max-height: 250px;
    overflow-y: auto;
    word-wrap: break-word;
    word-break: break-all;
}

.dns-record.mx-record .dns-value {
    white-space: pre-wrap;
    line-height: 1.4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.dns-record h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.dns-record h4 i {
    font-size: 1.3rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.dns-record h4 .text-blue-500 i {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.dns-record h4 .text-purple-500 i {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.dns-record h4 .text-orange-500 i {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.dns-record h4 .text-green-500 i {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.dns-record h4 .text-red-500 i {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.dns-record h4 .text-indigo-500 i {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.dns-record h4 .text-gray-500 i {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

.dns-record h4 .text-teal-500 i {
    background: rgba(26, 188, 156, 0.1);
    color: #1abc9c;
}

.dns-value {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    word-break: break-all;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dns-value:empty::before {
    content: 'Kayıt bulunamadı';
    color: #95a5a6;
    font-style: italic;
}

/* DNS Record Type Specific Colors */
.dns-record:nth-child(1) .dns-record h4 i { color: #3498db; }
.dns-record:nth-child(2) .dns-record h4 i { color: #9b59b6; }
.dns-record:nth-child(3) .dns-record h4 i { color: #f39c12; }
.dns-record:nth-child(4) .dns-record h4 i { color: #2ecc71; }
.dns-record:nth-child(5) .dns-record h4 i { color: #e74c3c; }
.dns-record:nth-child(6) .dns-record h4 i { color: #667eea; }
.dns-record:nth-child(7) .dns-record h4 i { color: #95a5a6; }
.dns-record:nth-child(8) .dns-record h4 i { color: #1abc9c; }

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.blog-post {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    border-radius: 16px 16px 0 0;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.blog-post-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.4;
}

.blog-post-header h3 i {
    font-size: 1.3rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    flex-shrink: 0;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date,
.blog-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    background: rgba(127, 140, 141, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.blog-date i,
.blog-category i {
    font-size: 0.8rem;
}

.blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.1);
}

.blog-read-more:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(4px);
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(2px);
}

.blog-keywords {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #90caf9;
    transition: all 0.3s ease;
}

.keyword:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.blog-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.blog-cta .cta-highlight {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.blog-cta .cta-highlight p {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

/* Featured Post Styles */
.blog-post.featured-post {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.blog-post-image {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.blog-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.blog-post-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

.blog-post-title h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-post-title h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.blog-post-title .blog-meta {
    gap: 1rem;
}

.blog-post-title .blog-date,
.blog-post-title .blog-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-image-placeholder.hosting-image {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
}

.blog-image-placeholder.hosting-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.blog-image-placeholder.cloud-image {
    background: linear-gradient(135deg, #3498db, #9b59b6);
}

.blog-image-placeholder.cloud-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Article Modal Styles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    padding: 0;
}

.article-image {
    height: 250px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.article-image-placeholder {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.article-content {
    padding: 2rem;
}

.article-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.article-content h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-content h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.article-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.dns-records-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.record-item {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.record-item strong {
    color: var(--text-color);
}

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

.importance-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.importance-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.importance-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.importance-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.importance-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-conclusion {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
    margin: 2rem 0;
}

.article-conclusion p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.article-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

/* Hosting Article Specific Styles */
.article-image-placeholder.hosting-image {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
}

.hosting-points {
    margin: 2rem 0;
}

.hosting-point {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hosting-point:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.point-number {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.point-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.point-content h3 i {
    color: #e74c3c;
    font-size: 1.1rem;
}

.point-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.article-conclusion h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-conclusion h3 i {
    color: #f39c12;
    font-size: 1.2rem;
}

/* Cloud Article Specific Styles */
.article-image-placeholder.cloud-image {
    background: linear-gradient(135deg, #3498db, #9b59b6);
}

.cloud-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.advantage-content h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.advantage-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.target-audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.audience-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 3px solid #9b59b6;
    transition: transform 0.3s ease;
}

.audience-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.audience-item i {
    color: #9b59b6;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.audience-item span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive Blog Grid */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-post.featured-post {
        grid-column: 1;
    }
    
    .blog-post-image {
        height: 150px;
    }
    
    .blog-post-title {
        padding: 1.5rem 1rem 1rem;
    }
    
    .blog-post-title h3 {
        font-size: 1.1rem;
    }
    
    .blog-post {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .blog-post-header h3 {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .blog-post-header h3 i {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    .blog-meta {
        gap: 0.75rem;
    }
    
    .blog-date,
    .blog-category {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Modal Responsive */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-image-placeholder i {
        font-size: 3rem;
    }
    
    .dns-records-list {
        grid-template-columns: 1fr;
    }
    
    .importance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Hosting Article Responsive */
    .hosting-point {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .point-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .point-content h3 {
        font-size: 1.1rem;
    }
    
    /* Cloud Article Responsive */
    .cloud-advantages {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .advantage-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .target-audience {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .audience-item {
        padding: 0.75rem;
    }
    
    /* Blog Keywords Responsive */
    .blog-keywords {
        gap: 0.4rem;
    }
    
    .keyword {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        margin-top: 1rem;
    }
    
    .blog-post {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .blog-post-header h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-content p {
        font-size: 0.9rem;
    }
}

/* Responsive DNS Grid */
@media (max-width: 768px) {
    .dns-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.25rem;
    }
    
    .dns-record {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .dns-record h4 {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .dns-record h4 i {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    .dns-value {
        font-size: 0.85rem;
        padding: 1rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .dns-grid {
        margin-top: 1rem;
    }
    
    .dns-record {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .dns-record h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .dns-value {
        font-size: 0.8rem;
        padding: 0.875rem;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-bottom-content {
        text-align: center;
    }
    
    .dns-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dns-record {
        padding: 1rem;
    }
    
    .dns-value {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}

/* Loading Message Styles */
.loading-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    color: white;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-message p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.loading-message small {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.5rem;
}

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

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .loading-message {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .loading-spinner {
        font-size: 1.5rem;
    }
    
    .loading-message p {
        font-size: 1rem;
    }
    
    .loading-message small {
        font-size: 0.8rem;
    }
    
    /* Improve text wrapping for mobile */
    .ping-details, .trace-details, .curl-details {
        word-break: break-all;
        overflow-x: auto;
        white-space: pre-wrap;
        font-family: 'Courier New', monospace;
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Better mobile form layout */
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-group .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .form-input {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Mobile card improvements */
    .card {
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile results section */
    .result-section {
        margin: 1rem 0;
        padding: 0.5rem;
        border-radius: 8px;
        background: var(--background-color);
    }
    
    .result-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #333;
    }
}

@media (max-width: 480px) {
    .loading-message {
        padding: 1rem;
        margin: 0.25rem 0;
    }
    
    .loading-spinner {
        font-size: 1.2rem;
    }
    
    .loading-message p {
        font-size: 0.9rem;
    }
    
    .loading-message small {
        font-size: 0.7rem;
    }
    
    .ping-details, .trace-details, .curl-details {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
    }
    
    .card-header p {
        font-size: 0.9rem;
    }
}

/* Ping Test Styles */
.ping-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .ping-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

.ping-stat {
    background: var(--background-color);
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.ping-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ping-stat .stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.ping-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2196f3;
}

.ping-details-raw,
.trace-details-raw,
.curl-details-raw {
    margin-top: 1rem;
}

.ping-details-raw h4,
.trace-details-raw h4,
.curl-details-raw h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.ping-details-raw pre,
.trace-details-raw pre,
.curl-details-raw pre {
    background: var(--background-color);
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Loading spinner for ping test */
.loading-message {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 8px;
    margin: 1rem 0;
}

.loading-spinner {
    font-size: 2rem;
    color: #2196f3;
    margin-bottom: 1rem;
}

.loading-message p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.loading-message small {
    color: #666;
    font-size: 0.9rem;
}

/* Mobile ping test styles */
@media (max-width: 768px) {
    .ping-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .ping-stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .ping-stat .stat-label {
        margin-bottom: 0;
    }
}

