/* 
=================================================================
1. CSS VARIABLES & GLOBAL STYLES
=================================================================
Modify these variables to change the entire color scheme of the website
*/
:root {
    /* Primary Colors - Main brand colors */
    --primary-color: #1a1a2e;      /* Dark blue - main background */
    --secondary-color: #16213e;    /* Darker blue - card backgrounds */
    --accent-color: #0f3460;       /* Medium blue - accents */
    --highlight-color: #ea0000;    /* Red - CTAs and highlights */
    
    /* Text Colors */
    --text-light: #f5f5f5;         /* Light text for dark backgrounds */
    --text-dark: #333;             /* Dark text for light backgrounds */
    
    /* Gradient Effects - Used for buttons and text effects */
    --gradient-1: linear-gradient(135deg, #1161ff 0%, #990000 100%);  /* Bright blue to dark red gradient */
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);  /* Pink gradient */
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);  /* Blue gradient */
    --gradient-icon: linear-gradient(135deg, #ea0000 0%, #ea0000 20%, #ffffff 60%, #ffffff 100%);  /* Red to white gradient matching hero text */
    --gradient-icon-inverted: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #ea0000 75%, #ea0000 100%);  /* Inverted white to red gradient for SVG icons */
}

/* Global Reset - Ensures consistent styling across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Body style when mobile nav is open - prevents scrolling */
body.nav-open {
    overflow: hidden;
}

/* 
=================================================================
2. ANIMATIONS & BACKGROUND EFFECTS
=================================================================
*/

/* Fixed background image */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/cropped-CONNECTTECH.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -3;
    opacity: 0.7; /* Adjust opacity as needed */
}

/* Animated gradient background - creates moving gradient effect */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: linear-gradient(45deg, rgba(10, 10, 10, 0.7), rgba(26, 26, 46, 0.7), rgba(15, 52, 96, 0.7));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Gradient animation keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.3rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
    background: rgba(26, 26, 46, 0.3);
    padding: 0.65rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 52px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

/* Main navigation area */
.nav-links-container {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to the right of the logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-right: 2rem; /* Space between nav links and language selector */
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.65rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Mobile controls wrapper - contains burger and language selector */
.mobile-controls {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Language Selector */
.language-selector {
    margin-left: auto; /* Always push to the right */
}

.language-toggle {
    display: flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: var(--highlight-color);
    font-weight: bold;
}

.lang-btn:hover:not(.active) {
    opacity: 0.7;
}

.lang-divider {
    color: var(--text-light);
    opacity: 0.5;
}

/* Hero Section */
.hero {
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 15vh; /* This adds padding at the top to position the content in the upper half */
    padding-bottom: 1rem;
}

.hero-content {
    text-align: center;
    z-index: 3; /* Higher than news section to ensure visibility */
    animation: fadeInUp 1s ease;
}

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

/* Removed - using .hero-title with individual spans instead */

/* Removed - using .hero-subtitle instead */

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 97, 255, 0.4);
    position: relative;
    z-index: 1;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.cta-button span {
    font-size: 1.1rem;
    font-weight: bold;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    mix-blend-mode: overlay;
    position: relative;
}

.cta-button::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: var(--gradient-icon);
    -webkit-background-clip: text;
    background-clip: text;
    z-index: 2;
    font-weight: bold;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.25);
}

/* News Section */
.news-section {
    padding: 5rem 0;
    background: rgba(22, 33, 62, 0.5);
    margin-top: -40vh; /* This creates overlap with the hero section */
    position: relative;
    z-index: 2; /* Ensure it's above the hero background elements */
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, 
                #ea0000 0%, 
                #ea0000 20%, 
                #ffffff 60%, 
                #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.news-card {
    background: rgba(15, 52, 96, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--highlight-color);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--highlight-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.news-excerpt {
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

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

.service-card {
    background: rgba(22, 33, 62, 0.5);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-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%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--highlight-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-icon);
    z-index: 1;
    border-radius: 50%;
}

.service-icon div {
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-description {
    text-align: left;
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.service-list {
    list-style: none;
    text-align: left;
    color: rgba(245, 245, 245, 0.8);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
    padding-top: 50px; /* Add some top padding for better visual appearance */
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    margin-bottom: 50px;
    animation: slideIn 0.4s ease-out;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Article Modal Styles */
.modal-article-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Content Inner - specific formatting for text content */
.modal-content-inner {
    line-height: 1.6;
    color: #ffffff;
    padding: 0 15px;
}

.modal-content-inner h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #ffffff;
}

.modal-content-inner p {
    margin-bottom: 15px;
    color: #ffffff;
}

.modal-content-inner ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #ffffff;
}

.modal-content-inner li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.modal-content-inner a {
    color: var(--highlight-color);
    text-decoration: none;
}

.modal-content-inner a:hover {
    text-decoration: underline;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

/* Article/Service Modal Specific Styles */
.modal-article-title, 
.modal-service-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
}

.modal-article-date {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    opacity: 0.8;
    display: block;
}

.modal-article-content,
.modal-service-content {
    line-height: 1.6;
    color: #ffffff;
    padding: 0.5rem 0;
}

.modal-article-content p,
.modal-service-content p {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.modal-article-content h2,
.modal-service-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #ffffff;
}

.modal-article-content h3,
.modal-service-content h3 {
    font-size: 1.5rem;
    margin: 1.8rem 0 0.8rem;
    color: #ffffff;
}

.modal-article-content ul,
.modal-service-content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #ffffff;
}

.modal-article-content li,
.modal-service-content li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.modal-article-content strong,
.modal-service-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Loading state */
.loading {
    padding: 2rem;
    text-align: center;
    color: #aaa;
    font-style: italic;
}

.error {
    padding: 2rem;
    text-align: center;
    color: var(--highlight-color);
    background: rgba(234, 0, 0, 0.1);
    border-radius: 5px;
    margin: 1rem 0;
}

/* Footer */
footer {
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-text {
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .burger-menu {
        display: block;
        position: relative;
        z-index: 1010;
        margin-right: 15px; /* Space between burger and language selector */
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 100%; /* Position below the navbar */
        height: auto; /* Only as tall as needed */
        width: 200px; /* Fixed width dropdown */
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Start from top */
        gap: 1.5rem;
        padding: 1.5rem;
        transform: translateX(100%); /* Move off-screen initially */
        transition: transform 0.3s ease;
        z-index: 1001;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
        margin-right: 0; /* Reset margin on mobile */
    }
    
    .nav-links.active {
        transform: translateX(0); /* Slide in from right */
    }
    
    .burger-menu.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger-menu.active .line2 {
        opacity: 0;
    }
    
    .burger-menu.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .news-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    /* Keep language selector visible */
    .language-selector {
        position: static;
    }
    
    .language-toggle {
        background: rgba(26, 26, 46, 0.7);
    }
    
    /* Remove previous top margin since we're using proper positioning now */
    .nav-links li:first-child {
        margin-top: 0;
    }
    
    /* Give some space between nav links */
    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Further adjustments for very small screens */
    .logo-image {
        height: 36px;
    }
    
    .language-toggle {
        padding: 0.1rem 0.6rem;
    }
    
    .lang-btn {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    /* Adjust space between burger and language selector on smallest screens */
    .language-selector {
        margin-left: 10px;
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

/* Loading animation for articles */
.loading-articles {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
    color: var(--text-light);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
}

.loading-articles::after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--highlight-color);
    margin: 1rem auto 0;
    animation: spin 1s linear infinite;
}

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

/* Contact Form Styles */
.contact-form {
    max-width: 100%;
    margin: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ea0000;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: #1a1a2e;
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.form-message-success {
    display: block;
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form-message.form-message-error {
    display: block;
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.form-message.form-message-info {
    display: block;
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.submit-btn {
    background: var(--highlight-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background: #c00000;
}

.form-status {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.privacy-link {
    color: var(--highlight-color);
    text-decoration: none;
    cursor: pointer;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Honeypot field - hidden from humans but visible to bots */
.website-field {
    display: none !important;
    opacity: 0;
    position: absolute;
    left: -9999px;
}

/* Add styling for the service modal image */
.modal-service-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
} 

/* Floating Contact Tile */
.contact-tile {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 1100;
    width: clamp(240px, 26vw, 320px);
    border-radius: 16px;
    background: rgba(22, 33, 62, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    animation: ct-slideIn 500ms ease-out 1;
}

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

.contact-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(234,0,0,0.45), rgba(255,255,255,0.08));
    mix-blend-mode: overlay;
    opacity: 0.6;
}

.ct-inner { padding: 14px 14px 12px 14px; position: relative; }

.ct-head { margin-bottom: 6px; }

.ct-kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--gradient-icon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.ct-sub {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.8);
    margin-top: 2px;
}

.ct-number {
    display: inline-block;
    margin: 6px 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.ct-number:hover { text-decoration: underline; }

.ct-actions {
    display: flex;
    gap: 10px;
}

.ct-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
}

.ct-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); }
.ct-btn:active { transform: translateY(0); }

.ct-btn .ct-icon { display: inline-flex; line-height: 0; }
.ct-btn svg { display: block; }

.ct-call { box-shadow: inset 0 0 0 1px rgba(234, 0, 0, 0.25); }
.ct-wa { box-shadow: inset 0 0 0 1px rgba(0, 200, 83, 0.25); }

@media (max-width: 768px) {
    .contact-tile {
        display: block;
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
        width: auto;
        border-radius: 14px;
        padding: 0; /* padding handled by .ct-inner */
        z-index: 1100;
    }
    .ct-inner { padding: 12px; }
    .ct-kicker { font-size: 11px; }
    .ct-sub { font-size: 12px; }
    .ct-number { font-size: 18px; }
    .ct-actions { gap: 8px; }
    .ct-btn { padding: 9px 10px; font-size: 13px; }
}

/* Tessa Assistant Tile */
.tessa-tile {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    color: var(--text-light);
    pointer-events: auto;
}

.tessa-panel {
    display: none;
    width: clamp(260px, 28vw, 360px);
    background: rgba(13, 21, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    flex-direction: column;
    max-height: min(560px, calc(100vh - 160px));
}

.tessa-tile.is-expanded .tessa-panel {
    display: flex;
    animation: tessa-pop 200ms ease-out;
}

.tessa-tile.is-expanded .tessa-toggle {
    display: none;
}

@keyframes tessa-pop {
    from { transform: translateY(10px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.tessa-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    /*background: rgba(13, 20, 38, 0.85);*/
    background: rgba(240, 240, 240, 1.0);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(15, 52, 96, 0.7);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tessa-toggle:hover {
    transform: translateY(-1px);
    background: rgba(13, 20, 38, 0.92);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.tessa-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
}

.tessa-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(234, 0, 0, 1), rgba(255, 95, 109, 0.9));
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(234, 0, 0, 0.35);
    line-height: 0;
}

.tessa-avatar svg {
    width: 18px;
    height: 18px;
}

.tessa-avatar.is-inline {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

.tessa-avatar.is-inline svg {
    width: 20px;
    height: 20px;
}

.tessa-toggle .tessa-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
    box-shadow: none;
}

.tessa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tessa-header-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tessa-header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tessa-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.tessa-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.tessa-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tessa-close:hover {
    color: #ffffff;
}

.tessa-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
    border-radius: 50%;
}

.tessa-history {
    padding: 16px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, rgba(17, 25, 45, 0.65) 0%, rgba(12, 18, 32, 0.85) 100%);
}

.tessa-history::-webkit-scrollbar {
    width: 6px;
}

.tessa-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.tessa-msg {
    display: flex;
}

.tessa-msg-bubble {
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.tessa-msg--assistant {
    justify-content: flex-start;
}

.tessa-msg--assistant .tessa-msg-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(245, 245, 245, 0.92);
}

.tessa-msg--user {
    justify-content: flex-end;
}

.tessa-msg--user .tessa-msg-bubble {
    background: linear-gradient(135deg, rgba(234, 0, 0, 0.9), rgba(234, 0, 0, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.tessa-msg--system {
    justify-content: center;
}

.tessa-msg--system .tessa-msg-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(245, 245, 245, 0.85);
    font-size: 12px;
    text-align: center;
    max-width: 90%;
}

.tessa-msg-bubble.is-loading {
    font-style: italic;
    opacity: 0.85;
}

.tessa-msg-bubble.is-error {
    background: rgba(234, 0, 0, 0.18);
    border-color: rgba(234, 0, 0, 0.35);
    color: #ffe6e6;
}

.tessa-empty {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
    padding: 24px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.tessa-input {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 14px 16px 16px;
    background: rgba(9, 14, 26, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tessa-textarea {
    flex: 1;
    min-height: 44px;
    max-height: 140px;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tessa-textarea:focus {
    outline: none;
    border-color: rgba(234, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.tessa-send {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea0000, #ff5f6d);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(234, 0, 0, 0.3);
}

.tessa-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(234, 0, 0, 0.32);
}

.tessa-send:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(234, 0, 0, 0.26);
}

.tessa-send svg {
    display: block;
}

.tessa-send[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 14px rgba(234, 0, 0, 0.18);
}

.tessa-send[disabled]:hover {
    transform: none;
    box-shadow: 0 6px 14px rgba(234, 0, 0, 0.18);
}

@media (max-width: 900px) {
    .tessa-tile {
        bottom: 110px;
        right: 12px;
        right: 12px;
    }
    
    .tessa-panel {
        width: 100%;
        max-height: calc(100vh - 190px);
    }
}

@media (max-width: 500px) {
    .tessa-send-label {
        display: none;
    }
    
    .tessa-send {
        padding: 10px 12px;
    }
}

/* Additional styles for existing components to match reference site */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.3rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.65rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero title styles matching reference */
.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: center;
    display: block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-title {
        white-space: normal;
    }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(234, 0, 0, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(234, 0, 0, 0.8)); }
}

.hero-title-red {
    background: linear-gradient(135deg, 
                #ea0000 0%, 
                #ea0000 20%, 
                #ffffff 60%, 
                #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(234, 0, 0, 0.5));
    animation: glow 2s ease-in-out infinite alternate;
    margin-right: 0.5rem;
}

.hero-title-white {
    color: #ffffff;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--text-light);
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 97, 255, 0.4);
    position: relative;
    z-index: 1;
    text-decoration: none;
    backdrop-filter: blur(5px);
    margin-bottom: 0;
}

.btn-hero-red {
    background: var(--gradient-icon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.btn-hero-white {
    color: #ffffff;
    display: inline;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.25);
}

/* Main offer section */
.main-offer {
    padding: 2rem 0 5rem 0;
    margin-top: -15vh;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.offer-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.offer-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.offer-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.btn-primary {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--text-light);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.btn-primary:hover {
    background-color: #c00000;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-light);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.3px;
    border: 1px solid var(--text-light);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-left: 1rem;
    line-height: 1.5;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.offer-attribution {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.6);
}

.feature-box {
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

.latency-indicator {
    text-align: center;
    margin-top: 1.5rem;
}

.latency-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--highlight-color);
}

/* Key Benefits Section */
.key-benefits {
    padding: 5rem 0;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
}

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

.benefit-card {
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight-color);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.benefit-card p {
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--highlight-color) 0%, #c00000 100%);
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    margin-left: 0;
    border-color: var(--text-light);
    color: var(--text-light);
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--highlight-color);
}

/* Pricing Page */
.pricing-hero {
    padding: 3rem 0;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
    margin-top: 80px; /* Account for fixed header */
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.pricing-header-left h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.pricing-header-left h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.pricing-header-right {
    text-align: right;
}

.top-offer {
    color: #ea0000;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: #ffffff;
    font-size: 0.9rem;
}

.pricing-main {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.special-banner {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.pricing-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-intro h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.pricing-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f1f1f1;
    text-align: center;
}

.pricing-packages {
    padding: 3rem 0;
}

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

.package-card {
    background-color: #ffffff;
    color: #0a1628;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 0;
    overflow: visible;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.package-popular {
    border: 3px solid #ea0000;
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-reseller {
    background-color: #ea0000;
}

.badge-popular {
    background-color: #ea0000;
}

.badge-individual {
    background-color: #ea0000;
}

.package-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.package-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    color: #0a1628;
}

.price-period {
    font-size: 0.9rem;
    color: #555555;
    display: block;
    margin-top: 0.5rem;
}

.package-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555555;
    text-align: center;
    flex-grow: 1;
    word-wrap: break-word;
    hyphens: auto;
}

/* German language specific adjustments */
html[lang="de"] .package-title {
    font-size: 1.3rem;
}

html[lang="de"] .package-description {
    font-size: 1.1rem;
    line-height: 1.9;
}

html[lang="de"] .package-badge {
    font-size: 0.7rem;
    padding: 0.5rem 1.2rem;
}

.btn-package {
    display: block;
    width: 100%;
    background-color: #ea0000;
    color: #ffffff;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-package:hover {
    background-color: #c1121f;
}

.package-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-payment {
    background-color: #ea0000;
    color: #ffffff;
}

.btn-payment:hover {
    background-color: #c1121f;
}

.package-actions .btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.package-actions .btn-secondary:hover {
    background-color: #ffffff;
    color: #0a1628;
}

/* Checkout Page Styles */
.checkout-hero {
    padding: 3rem 0;
    background: rgba(22, 33, 62, 0.5);
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 80px; /* Account for fixed header */
}

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

.hero-description {
    font-size: 1.2rem;
    color: #f1f1f1;
}

.checkout-main {
    padding: 3rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-summary {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-label {
    color: #f1f1f1;
}

.summary-value {
    font-weight: 600;
    color: #ffffff;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0 0;
    margin-top: 1rem;
    border-top: 2px solid #ea0000;
}

.summary-total .summary-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.summary-total .summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ea0000;
}

.checkout-form-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.payment-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.payment-loading p {
    margin-bottom: 1rem;
    color: #f1f1f1;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ea0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.payment-error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.payment-error p {
    color: #f44336;
    margin-bottom: 1rem;
}

/* Payment Success Page */
.payment-success-hero {
    padding: 4rem 0;
    background: rgba(22, 33, 62, 0.5);
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 80px; /* Account for fixed header */
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    color: #ea0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 auto 2rem;
}

.payment-success-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.payment-success-hero .hero-description {
    font-size: 1.2rem;
    color: #f1f1f1;
}

.success-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
}

.payment-details {
    padding: 4rem 0;
}

.details-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.details-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    color: #f1f1f1;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #ffffff;
}

.next-steps {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.next-steps h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.next-steps p {
    color: #f1f1f1;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pricing-note {
    padding: 2rem 0;
    text-align: center;
}

.note-text {
    color: #888888;
    font-size: 0.9rem;
}

/* Features Page */
.features-hero {
    padding: 4rem 0;
    text-align: center;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
    margin-top: 80px; /* Account for fixed header */
}

.features-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-description {
    font-size: 1.2rem;
    color: #f1f1f1;
}

/* About Page */
.about-hero {
    padding: 4rem 0;
    text-align: center;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
    margin-top: 80px; /* Account for fixed header */
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-main {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(245, 245, 245, 0.9);
    text-align: left;
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.differentiators {
    padding: 4rem 0;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
}

.differentiators .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, 
                #ea0000 0%, 
                #ea0000 20%, 
                #ffffff 60%, 
                #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.differentiator-card {
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.differentiator-card:hover {
    transform: translateY(-5px);
    border-color: #ea0000;
}

.differentiator-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.differentiator-card p {
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.7;
}

.core-values {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.core-values .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, 
                #ea0000 0%, 
                #ea0000 20%, 
                #ffffff 60%, 
                #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.values-list {
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ea0000;
    transition: transform 0.3s, border-color 0.3s;
}

.value-item:hover {
    transform: translateX(5px);
    border-color: #ea0000;
}

.value-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.value-item p {
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.7;
}

/* Contact Page */
.contact-hero {
    padding: 4rem 0;
    text-align: center;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
    margin-top: 80px; /* Account for fixed header */
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-main {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    height: fit-content;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    border-bottom: 2px solid rgba(234, 0, 0, 0.3);
    padding-bottom: 1rem;
}

.info-item {
    margin-bottom: 2rem;
}

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

.info-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ea0000;
}

.info-item p {
    margin: 0;
    color: rgba(245, 245, 245, 0.9);
    line-height: 1.6;
}

.info-item a {
    color: rgba(173, 216, 230, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.info-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-form-container {
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
}

.contact-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    border-bottom: 2px solid rgba(234, 0, 0, 0.3);
    padding-bottom: 1rem;
}

.features-main {
    padding: 4rem 0;
}

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

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: #ea0000;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-item p {
    color: #f1f1f1;
    line-height: 1.7;
}

.service-extensions {
    padding: 4rem 0;
    background: rgba(22, 33, 62, 0.5);
    position: relative;
    z-index: 2;
}

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

.extension-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.extension-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.extension-card p {
    color: #f1f1f1;
    line-height: 1.7;
}

.technical-highlights {
    padding: 4rem 0;
}

.highlights-list {
    max-width: 900px;
    margin: 0 auto;
}

.highlight-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ea0000;
}

.highlight-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.highlight-item p {
    color: #f1f1f1;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-section p {
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--highlight-color);
}

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

.footer-bottom p {
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: flex-start;
    }

    .language-selector {
        align-self: flex-end;
    }

    .logo-image {
        height: 40px;
    }

    .hero {
        padding: 4rem 0 2rem 0;
        height: auto;
        min-height: auto;
        padding-top: 12vh;
    }
    
    .main-offer {
        margin-top: -8vh;
    }
    
    .hero {
        height: 50vh;
        min-height: 400px;
        padding-bottom: 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-info h2,
    .contact-form-container h2 {
        font-size: 1.75rem;
    }

    .pricing-header {
        flex-direction: column;
        text-align: center;
    }

    .pricing-header-right {
        text-align: center;
    }

    .package-popular {
        transform: scale(1);
    }

    .offer-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .about-intro {
        padding: 2rem;
        font-size: 1.1rem;
    }
    
    .differentiators-grid {
        grid-template-columns: 1fr;
    }
    
    .differentiators .section-title,
    .core-values .section-title {
        font-size: 2rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .package-actions {
        flex-direction: column;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
        margin: 0;
    }
}
