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

:root {
    /* Modern Professional Color Palette */
    --primary-color: #1a365d;        /* Deep navy blue */
    --secondary-color: #2c5aa0;      /* Professional blue */
    --accent-color: #00d4aa;         /* Modern teal accent */
    --text-primary: #1a202c;        /* Dark gray */
    --text-secondary: #4a5568;      /* Medium gray */
    --text-light: #718096;          /* Light gray */
    --background: #ffffff;          /* Pure white */
    --background-alt: #f7fafc;      /* Very light gray */
    --background-card: #ffffff;     /* Card background */
    --border-color: #e2e8f0;        /* Light border */
    --success-color: #38a169;       /* Success green */
    --warning-color: #ed8936;       /* Warning orange */
    --error-color: #e53e3e;         /* Error red */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #00b4d8 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    scroll-behavior: smooth;
}

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

/* Header and Navigation */
header {
    background: var(--background);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

/* Beautiful Logo Design */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 10 0 L 10 10 M 0 10 L 20 10 M 15 5 L 15 15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)" /></svg>');
    opacity: 0.3;
}

.logo-icon i {
    font-size: 1.2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.logo-icon .fas.fa-code {
    position: absolute;
    opacity: 0;
    transition: all 0.3s ease;
}

.logo-icon .logo-accent {
    position: absolute;
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.logo-tagline {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 1;
    transition: all 0.3s ease;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

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

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--background);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn:hover:not(.active) {
    background: var(--background-alt);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 0 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

.cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.btn-primary {
    background: var(--background);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: var(--accent-color);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--background-alt);
}

.services h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.services .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--background-card);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots-small" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots-small)" /></svg>');
    opacity: 0.5;
}

.service-icon i {
    font-size: 2rem;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: white;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--background);
}

.about h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.about .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

.highlight-box {
    background: var(--background-alt);
    padding: 3rem 2rem;
    border-radius: 20px;
    border-left: 4px solid var(--accent-color);
    margin-top: 4rem;
    box-shadow: var(--shadow);
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.highlight-box ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.highlight-box li {
    padding: 1rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.highlight-box li:last-child {
    border-bottom: none;
}

.highlight-box li:hover {
    color: var(--text-primary);
    padding-left: 2.5rem;
}

.highlight-box li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 1rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--background-alt);
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--background-card);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact-card strong {
    color: var(--text-primary);
}

/* Legal Pages */
.legal-page {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.legal-content h3 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.2rem;
}

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

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)" /></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1.05rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-section.mobile-open {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-section {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-section.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .language-switcher {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Other mobile styles */
    .services h2, .about h2, .contact h2 {
        font-size: 2.5rem;
    }
    
    .services, .about, .contact {
        padding: 6rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .highlight-box {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
    
    .highlight-box h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .highlight-box ul {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 5rem 0 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .services, .about, .contact {
        padding: 4rem 0;
    }
    
    .services h2, .about h2, .contact h2 {
        font-size: 2rem;
    }
    
    .service-card, .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .highlight-box {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .highlight-box h3 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .highlight-box ul {
        max-width: 100%;
    }
    
    .highlight-box li {
        padding: 0.875rem 0;
        padding-left: 1.75rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .highlight-box li:before {
        top: 0.875rem;
        font-size: 0.9rem;
    }
    
    .nav-section {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legal-page {
        padding: 3rem 0;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .about-text p {
        text-align: left;
        font-size: 1.1rem;
    }
}

/* Additional smooth interactions */
.service-card, .contact-card, .highlight-box li {
    will-change: transform;
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.lang-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth scrolling enhancement */
html {
    scroll-padding-top: 80px;
}