/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #0B3D91;
    color: white;
}

.btn-primary:hover {
    background-color: #0a357d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0B3D91;
    border: 2px solid #0B3D91;
}

.btn-secondary:hover {
    background-color: #0B3D91;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 61, 145, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    color: #0B3D91;
    font-size: 1.8rem;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #222222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0B3D91;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #0B3D91;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    color: #0B3D91;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #0B3D91;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Solutions Section */
.solutions {
    padding: 80px 0;
    background-color: #F7FAFC;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(11, 61, 145, 0.1);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #00B3B3;
}

.solution-icon {
    margin-bottom: 1.5rem;
}

.solution-card h3 {
    color: #0B3D91;
    margin-bottom: 1rem;
}

.solution-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.solution-card ul {
    list-style: none;
}

.solution-card li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.solution-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00B3B3;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-icon {
    background-color: #00B3B3;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: #F7FAFC;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(11, 61, 145, 0.1);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #00B3B3;
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #00B3B3;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-role {
    color: #0B3D91;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-specialization {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #0B3D91 0%, #00B3B3 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Focus Section */
.focus {
    padding: 80px 0;
}

.focus-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.focus h2 {
    color: #0B3D91;
    margin-bottom: 1.5rem;
}

.focus p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.focus-features {
    margin-bottom: 2rem;
}

.focus-feature {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #F7FAFC;
    border-radius: 8px;
    border-left: 4px solid #00B3B3;
}

.focus-feature h4 {
    color: #0B3D91;
    margin-bottom: 0.5rem;
}

.focus-feature p {
    color: #4a5568;
    margin: 0;
    font-size: 1rem;
}

.case-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #0B3D91;
    background-color: #F7FAFC;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #00B3B3;
    margin: 0;
}

.focus-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.focus-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Integrations Section */
.integrations {
    padding: 80px 0;
    background-color: #F7FAFC;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.integration-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(11, 61, 145, 0.1);
}

.integration-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #00B3B3;
}

.integration-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.integration-item span {
    color: #0B3D91;
    font-weight: 600;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #0B3D91;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-details strong {
    display: block;
    color: #0B3D91;
    margin-bottom: 0.5rem;
}

.contact-details span {
    color: #4a5568;
}

.contact-form {
    background: #F7FAFC;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0B3D91;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00B3B3;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #0B3D91;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Legal Popup */
.legal-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    max-height: 80vh;
    overflow-y: auto;
}

.legal-popup.active {
    transform: translateY(0);
}

.legal-popup-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-popup-header h3 {
    color: #0B3D91;
    margin: 0;
}

.legal-popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #4a5568;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-popup-body {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.legal-popup-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-content,
    .focus-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .integration-item {
        padding: 1.5rem;
    }
    
    .integration-item span {
        font-size: 0.9rem;
    }

    .legal-popup-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-item {
        padding: 1rem;
    }
    
    .integration-item span {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Technology Detection CSS Classes */
/* React App Detection */
.react-app [data-react-component] {
    position: relative;
}

.react-app [data-react-component]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Next.js App Detection */
.next-app {
    --next-version: '13.5.0';
}

.next-app [data-next-page] {
    position: relative;
}

/* Tailwind CSS Detection */
.tailwind .bg-white {
    background-color: #ffffff;
}

.tailwind .text-gray-900 {
    color: #111827;
}

.tailwind .font-inter {
    font-family: 'Inter', sans-serif;
}

/* Radix UI Detection */
.radix-ui [data-radix-component] {
    position: relative;
}

.radix-ui [data-radix-component]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Framer Motion Detection */
.framer-motion [data-framer-motion] {
    will-change: transform;
    transform: translateZ(0);
}

/* shadcn/ui Detection */
[data-shadcn-component] {
    --shadcn-version: '0.4.0';
    position: relative;
}

/* Lucide Icons Detection */
[data-lucide-icon] {
    --lucide-version: '0.263.1';
    display: inline-block;
    width: 1em;
    height: 1em;
}

/* TypeScript Detection */
[data-typescript] {
    --ts-version: '5.0.0';
}

/* Vite Detection */
[data-vite] {
    --vite-version: '4.4.0';
}

/* ESLint Detection */
[data-eslint] {
    --eslint-version: '8.45.0';
}

/* PWA Detection */
[data-pwa] {
    --pwa-manifest: 'manifest.json';
}

/* Nginx Detection */
html[data-server="nginx"] {
    --server: 'nginx/1.28.0';
}

/* Cloudflare Detection */
html[data-cdn="cloudflare"] {
    --cdn: 'cloudflare';
}

/* Google Analytics Detection */
[data-ga4] {
    --ga-version: '4';
}

/* Microsoft Clarity Detection */
[data-clarity] {
    --clarity-active: 'true';
}

/* Hotjar Detection */
[data-hotjar] {
    --hotjar-active: 'true';
}
