/* Reset and Base Styles */
:root {
    --bg-main: #041832;
    --bg-darker: #020c1b;
    --bg-card: #152540;
    --bg-card-hover: #1c3258;
    --text-primary: #ffffff;
    --text-secondary: #a3b8cc;
    --accent-blue: #007bff;
    --accent-cyan: #00d2df;
    --accent-purple: #8338ec;
    --gradient-1: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    --gradient-2: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    --shadow-default: 0 10px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.6);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: rgba(2, 12, 27, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 36px;
    object-fit: contain;
}

.ceia-logo {
    height: 48px; /* Slightly taller to match proportions if needed */
}

.logo-separator {
    width: 2px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 210, 223, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 210, 223, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-illustration {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    background: rgba(0, 210, 223, 0.2);
    top: 50px;
    right: 50px;
}

.orb-2 {
    background: rgba(131, 56, 236, 0.2);
    bottom: -50px;
    left: 20px;
    animation-delay: -3s;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
    animation: float-tilt 5s ease-in-out infinite;
}

.decor-card-1 {
    top: 20%;
    right: 10%;
    transform: rotate(5deg);
}

.decor-card-2 {
    bottom: 20%;
    left: 10%;
    transform: rotate(-5deg);
    animation-delay: -2s;
}

.card-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

/* Documents Section */
.documents {
    padding: 80px 0 120px;
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-align: center;
}

.section-title span {
    color: var(--accent-cyan);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.doc-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-default);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.02);
    height: 100%;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.doc-card-header {
    height: 140px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }

.doc-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 12px;
    color: white;
}

.doc-badge {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doc-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.doc-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.doc-action {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
}

.doc-card:hover .doc-action {
    color: var(--accent-blue);
}

/* Footer */
.footer {
    background: #020813;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-links p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes float-tilt {
    0% { transform: translateY(0px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(5deg); }
}

.decor-card-2 {
    animation: float-tilt-alt 6s ease-in-out infinite;
}

@keyframes float-tilt-alt {
    0% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(-8deg); }
    100% { transform: translateY(0px) rotate(-5deg); }
}

/* Quick Links Extras */
.quick-links {
    padding: 60px 0 100px;
    background-color: var(--bg-main);
}
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.extra-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.extra-block:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}
.extra-block h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.extra-block h2 span {
    color: var(--accent-blue);
}
.extra-block p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chatbot-icon {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
    background: var(--bg-darker);
}
.chatbot-icon:hover {
    transform: scale(1.1);
}
.chatbot-bubble {
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    animation: pulse 2s infinite;
}
.chatbot-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}
.chatbot-window {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    height: 450px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    overflow: hidden;
}
.chatbot-header {
    background: var(--gradient-2);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cb-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.cb-info img {
    border-radius: 50%;
    background: var(--bg-darker);
}
.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.chatbot-body {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.chatbot-msg {
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
}
.chatbot-msg.rx {
    background: rgba(255,255,255,0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.chatbot-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.chatbot-input input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
}
.chatbot-input button {
    background: var(--accent-cyan);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-illustration {
        display: none;
    }
    
    .navigation {
        display: none;
    }
}
