/* Custom CSS for HopLinker Website */

:root {
    --primary-color: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8f9fa;
    --dark-color: #1e1b4b;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Override Bootstrap primary color */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    opacity: 0.9;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Screenshot Carousel */
.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.carousel {
    width: 100%;
    max-width: 800px;
}

.carousel-inner {
    border-radius: 20px;
    overflow: hidden;
}

.screenshot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    max-height: 600px;
    padding: 40px 20px;
}

.screenshot-container img {
    max-height: 550px;
    width: auto;
    object-fit: contain;
}

.mac-screenshot {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.iphone-screenshot {
    background: transparent;
}

.iphone-screenshot img {
    max-height: 500px;
}

.screenshot-placeholder {
    text-align: center;
    color: white;
    padding: 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 600px;
}

.mac-screenshot .screenshot-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 0 auto;
}

.iphone-screenshot .phone-frame {
    display: flex;
    align-items: center;
    justify-content: center;
}

.iphone-screenshot .screenshot-placeholder {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 27px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(124, 58, 237, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(124, 58, 237, 1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    line-height: 1.8;
}

/* Comparison Section */
.comparison-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.comparison-card.traditional-vpn::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.comparison-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.comparison-header i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.traditional-vpn .comparison-header i {
    color: #dc3545;
}

.comparison-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.comparison-header .badge {
    font-size: 0.85rem;
    padding: 8px 16px;
    font-weight: 600;
}

.comparison-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    background: #f8f9fa;
}

.comparison-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-item.negative i {
    color: #dc3545;
}

.comparison-item.positive i {
    color: #28a745;
}

.comparison-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.comparison-item strong {
    color: #333;
    font-weight: 600;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.vs-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    }
}

.key-benefit-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.key-benefit-box h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.key-benefit-box p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.step-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #333;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 25px;
    background: #f8f9fa;
    color: #666;
    line-height: 1.6;
}

.accordion-body ul {
    margin-bottom: 0;
}

.accordion-body li {
    margin-bottom: 8px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.contact-buttons .btn {
    margin: 10px;
}

/* Footer */
.footer {
    padding: 40px 0;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer alignment fixes */
.footer .row {
    min-height: 60px;
}

.footer .logo-icon {
    flex-shrink: 0;
    align-self: center;
}

.footer .col-md-6.text-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer .col-md-3.text-md-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-links {
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .hero-image {
        height: 60vh;
        margin-top: 50px;
        padding: 10px;
    }
    
    .hero-content {
        padding-top: 50px;
        text-align: center;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .screenshot-container {
        min-height: 400px;
        max-height: 500px;
        padding: 20px 10px;
    }
    
    .screenshot-container img {
        max-height: 450px;
    }
    
    .iphone-screenshot img {
        max-height: 400px;
    }
    
    .mac-screenshot .screenshot-placeholder {
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .step-card {
        padding: 30px 20px;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    
    .app-interface {
        padding: 30px 15px 15px;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Download Page Styles */
.download-hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
}

.download-section {
    background: #f8f9fa;
    min-height: 60vh;
}

.download-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.download-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.version-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.installation-guide {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.installation-guide h3 {
    color: #333;
    font-weight: 600;
}

.installation-guide ol,
.installation-guide ul {
    line-height: 2;
    color: #666;
}

/* Content Page Styles */
.content-page-section {
    padding: 120px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.content-page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
}

.content-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.content-page-body {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    line-height: 2;
    color: #666;
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-section li {
    margin-bottom: 10px;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.content-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

/* Responsive adjustments for content pages */
@media (max-width: 768px) {
    .content-page-body {
        padding: 30px 20px;
    }
    
    .content-page-header h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .download-hero-section {
        padding: 120px 0 60px;
    }
    
    .vs-divider {
        min-height: 80px;
        margin: 20px 0;
    }
    
    .vs-badge {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .comparison-card {
        margin-bottom: 20px;
    }
    
    .key-benefit-box {
        padding: 30px 20px;
    }
    
    .key-benefit-box h4 {
        font-size: 1.3rem;
        margin-top: 20px;
    }
}
