/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

section {
    margin: 2rem 0;
    padding: 2rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

section p.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
}

/* Header styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.nav-links a:hover {
    color: #3498db;
}

/* Tablet and mobile styles */
@media (max-width: 1024px) {
    .logo {
        display: none;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0 1rem;
    }

    .nav-links a {
        display: none;
    }
    
    .nav-links a[href="#top-vpns"]:not(.mobile-only),
    .nav-links a[href="#speed-test"]:not(.mobile-only) {
        display: block;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        justify-content: center;
        gap: 2rem;
    }
    
    .nav-links a {
        margin: 0;
    }
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a73e8;
    text-decoration: none;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.primary {
    background: #1a73e8;
    color: white;
    font-weight: 600;
}

.primary:hover {
    background: #1557b0;
}

.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.secondary:hover {
    background: rgba(255,255,255,0.1);
}

.visit {
    background: #34a853;
    color: white;
    width: 100%;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

.visit:hover {
    background: #2d9147;
}

/* VPN Cards */
.vpn-list {
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 2rem;
}

.vpn-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Special styling for the top ranked VPN */
.vpn-card:first-child {
    border: 2px solid #1a73e8;
    box-shadow: 0 4px 12px rgba(26,115,232,0.15);
}

.rank {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 35px;
    height: 35px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

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

.vpn-logo {
    flex: 0 0 180px;
}

.vpn-logo img {
    max-width: 150px;
    display: block;
    margin: 0 auto;
}

.vpn-info {
    flex: 1;
}

.vpn-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vpn-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: none;
}

.vpn-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vpn-rating-text {
    background: #fffdf7;
    border: 1px solid #ffdfa4;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
    margin-left: 10px;
    font-size: 12px;
}

.vpn-rating-text::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #ffa500 transparent transparent;
}

.vpn-rating-text::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #fff3cd transparent transparent;
}

.rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e3f2fd;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.rating-max {
    color: #666;
    font-size: 1.2rem;
}

.vpn-stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    position: relative;
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    width: 100%;
}

/* Speed stat progress bar */
.stat-progress {
    height: 10px;
    background: #d9d9d9;
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.stat-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 10px;
    background: #1a73e8;
    border-radius: 2px;
    animation: progressAnimation 1.5s ease-out forwards;
    transform-origin: left;
    box-shadow: 0 1px 2px rgba(26,115,232,0.3);
}

@keyframes progressAnimation {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.vpn-actions {
    flex: 0 0 200px;
    text-align: center;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 1rem;
}

.discount-tag {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #34a853;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(52,168,83,0.2);
}

.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.features li {
    margin-bottom: 0.5rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.5;
}

.features li::before {
    content: "✓";
    color: #1a73e8;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Speed Test Section */
.speed-test {
    background: #fff;
    padding: 4rem 0;
}

.speed-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.speed-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.speed-card img {
    max-width: 150px;
    display: block;
    margin: 0 auto;
}

.speed-card:hover {
    transform: translateY(-5px);
}

.speed-info {
    margin-top: 1.5rem;
}

.speed-stat {
    margin-bottom: 1rem;
}

.progress {
    height: 10px;
    margin: 0.5rem 0;
    background: #e3f2fd;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar.download {
    background-color: #1a73e8;
}

.progress-bar.upload {
    background-color: #34a853;
}

/* Why Use a VPN */
.why-vpn {
    background: #f8f9fa;
    padding: 4rem 0;
}

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

.benefit-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Use Cases */
.use-cases {
    background: #fff;
    padding: 4rem 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommended-vpn {
    margin-top: 1.5rem;
    text-align: center;
}

.recommended-vpn img {
    max-width: 150px;
    margin-bottom: 1rem;
}

/* Guides section */
.guides {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.guide-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.read-more {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding-right: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

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

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

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

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

/* Adjust section padding to account for fixed header */
section {
    scroll-margin-top: 80px;
}

.hero {
    padding-top: calc(8rem + 60px);
}

@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        padding-right: 0;
    }
}

/* Comparison Table */
.comparison {
    background: #f8f9fa;
    padding: 4rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

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

/* FAQ Section */
.faq {
    background: #f8f9fa;
    padding: 4rem 0;
}

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #666;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .vpn-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .discount-tag {
        top: -12px;
        right: -12px;
        transform: none;
    }

    .vpn-logo {
        flex: 0 0 auto;
    }

    .vpn-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
    }

    .vpn-actions {
        flex: 0 0 auto;
        width: 100%;
    }
    .nav-links {
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 1rem 0;
    }
    
    .secondary {
        margin-left: 0;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .rating-score {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }

    .vpn-stats {
        justify-content: center;
    }
}

/* Content pages styles */
.content {
    padding: 4rem 0;
    background: #fff;
}

.content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.content h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.8;
}

.content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

/* Article styles */
.article-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

.recommendation-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommendation-box img {
    max-width: 150px;
}

.recommendation-details {
    flex: 1;
}

.recommendation-details h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.recommendation-details ul {
    margin-bottom: 1.5rem;
}

.recommendation-details .btn {
    display: inline-block;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .recommendation-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .recommendation-box img {
        margin: 0 auto;
    }
}

.content ul li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Contact page specific styles */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
}

.contact-method {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-method h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-method a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}