/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.logo-img {
    height: 32px;
    width: auto;
    margin-right: 12px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* NEW Badge */
.new-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #6366f1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.publish-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-status {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
    to { box-shadow: 0 0 20px rgba(245, 158, 11, 0.8); }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #fff;
    color: #6366f1;
}

.btn-primary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6366f1;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-diagram {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.chain-node {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chain-node i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.chain-node span {
    font-weight: 600;
}

.hyperlane-core {
    background: rgba(255, 255, 255, 0.3);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hyperlane-core i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.hyperlane-logo {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Hero Poster Image */
.hero-poster {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-poster-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-poster-img:hover {
    transform: scale(1.02);
}

/* Section Images */
.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image containers */
.architecture-image,
.security-image,
.operations-image,
.manifesto-image {
    text-align: center;
    margin: 2rem 0;
}

.manifesto-image {
    max-width: 600px;
    margin: 2rem auto;
}

/* Content Highlight */
.content-highlight {
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    border: 1px solid #81d4fa;
    border-radius: 12px;
    padding: 12px 20px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0277bd;
    box-shadow: 0 2px 10px rgba(2, 119, 189, 0.1);
}

.content-highlight i {
    color: #f59e0b;
    font-size: 1.1rem;
}

/* Internal Link Styling */
a[href^="#"] {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

a[href^="#"]:hover {
    color: #4f46e5;
    border-bottom-color: #6366f1;
    transform: translateY(-1px);
}

a[href^="#"]:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Special styling for links in hero section */
.hero-content a[href^="#"] {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.hero-content a[href^="#"]:hover {
    color: white;
    border-bottom-color: white;
}

/* Social Sharing Styles */
.social-sharing {
    margin-top: 2rem;
    text-align: center;
}

.social-sharing h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 100px;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.copy-link {
    background: #6b7280;
    color: white;
}

.share-btn i {
    font-size: 1rem;
}

/* Floating Social Share Widget */
.floating-share {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.floating-share-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.floating-share-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.floating-share-menu {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.floating-share-menu.active {
    display: flex;
}

.floating-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: white;
    min-width: 150px;
    justify-content: flex-start;
}

.floating-share-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-share-btn.twitter {
    background: #1da1f2;
}

.floating-share-btn.linkedin {
    background: #0077b5;
}

.floating-share-btn.facebook {
    background: #4267b2;
}

.floating-share-btn.telegram {
    background: #0088cc;
}

.floating-share-btn.whatsapp {
    background: #25d366;
}

.floating-share-btn.copy-link {
    background: #6b7280;
}

.floating-share-btn i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.connection-line {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Overview Section */
.overview {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Architecture Section */
.architecture {
    padding: 80px 0;
    background: #f8fafc;
}

.architecture-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.component-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.component-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.component-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.component-header i {
    font-size: 1.5rem;
    color: #6366f1;
    margin-right: 12px;
}

.component-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.component-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.component-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Deployment Section */
.deployment {
    padding: 80px 0;
    background: white;
}

.deployment-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.step-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.prerequisites {
    margin-bottom: 1.5rem;
}

.prereq-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.prereq-item i {
    color: #10b981;
    margin-right: 10px;
}

.code-block {
    background: #1f2937;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.code-header {
    background: #374151;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #d1d5db;
    font-size: 0.9rem;
}

.copy-btn {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #4b5563;
}

.code-block pre {
    padding: 16px;
    margin: 0;
    color: #f9fafb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box i {
    color: #3b82f6;
    margin-top: 2px;
}

.info-box p {
    color: #1e40af;
    margin: 0;
}

/* Security Section */
.security {
    padding: 80px 0;
    background: #f8fafc;
}

.security-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.security-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.security-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.security-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.security-header i {
    font-size: 1.5rem;
    color: #6366f1;
    margin-right: 12px;
}

.security-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.security-content p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.security-level {
    margin-top: 1rem;
}

.level-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.level-badge.default {
    background: #dbeafe;
    color: #1e40af;
}

.level-badge.mandatory {
    background: #fef3c7;
    color: #92400e;
}

.level-badge.highest {
    background: #fce7f3;
    color: #be185d;
}

.level-badge.future {
    background: #e0f2fe;
    color: #0c4a6e;
}

.custom-security {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.custom-security h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.custom-security-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.warning-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-box i {
    color: #dc2626;
    margin-top: 2px;
}

.warning-box p {
    color: #991b1b;
    margin: 0;
}

/* Operations Section */
.operations {
    padding: 80px 0;
    background: white;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.operation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.operation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.operation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.operation-icon i {
    font-size: 1.5rem;
    color: white;
}

.operation-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.operation-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.operation-card ul {
    list-style: none;
    padding: 0;
}

.operation-card li {
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.operation-card li::before {
    content: "•";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: #1f2937;
    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 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #6366f1;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6366f1;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .network-diagram {
        flex-direction: column;
        gap: 1rem;
    }
    
    .connection-line {
        width: 3px;
        height: 40px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .architecture-diagram,
    .security-types,
    .operations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .component-card,
    .security-card,
    .operation-card {
        padding: 1.5rem;
    }
    
    .code-block pre {
        font-size: 0.8rem;
        padding: 12px;
    }
    
    .hero-poster-img,
    .section-image {
        margin: 1rem 0;
    }
    
    .manifesto-image {
        max-width: 100%;
        margin: 1rem auto;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .new-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .content-highlight {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .floating-share {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .floating-share-menu {
        right: 60px;
        bottom: 0;
        top: auto;
        transform: none;
    }
}
