/* ===================================
   ETHYRA GLOBAL RESEARCH
   MAIN STYLESHEET
=================================== */

:root{
    --primary:#0a5c8f;
    --primary-dark:#084a72;
    --secondary:#18a0c9;
    --accent:#1fc8db;
    --text:#243444;
    --text-light:#667788;
    --white:#ffffff;
    --light:#f5f8fb;
    --border:#e4ebf2;
    --success:#28a745;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --radius:14px;
    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: "Segoe UI", Arial, sans-serif;
    font-size:16px;
    line-height:1.7;
    color:var(--text);
    background:#fff;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    transition:var(--transition);
}

ul{
    list-style:none;
}

.container{
    width:min(1200px,92%);
    margin:auto;
}

/* =====================
   HEADER
===================== */

.header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#fff;
    box-shadow:0 2px 15px rgba(0,0,0,.06);
    backdrop-filter: blur(10px);
}

.navbar{
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}   

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:70px;
    width:auto;
    display:block;
}

.nav-menu{
    display:flex;
    gap:30px;
}

.nav-menu a{
    color:var(--text);
    font-weight:600;
    position:relative;
}

.nav-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:var(--primary);
    transition:.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after{
    width:100%;
}

.nav-menu a.active{
    color:var(--primary);
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:30px;
    cursor:pointer;
}

/* =====================
   BUTTONS
===================== */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 28px;
    border-radius:50px;
    font-weight:600;
    transition:.3s;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

.btn-outline{
    border:2px solid var(--primary);
    color:var(--primary);
}

.btn-outline:hover{
    background:var(--primary);
    color:#fff;
}

.btn-light{
    background:#fff;
    color:var(--primary);
}

/* =====================
   HERO
===================== */

.hero{
    padding:80px 0;
    background:
        linear-gradient(
        135deg,
        #f7fbff 0%,
        #eef7fc 100%
    );
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr 450px;
    gap:60px;
    align-items:center;
}

.hero-badge{
    display:inline-block;
    padding:8px 16px;
    border-radius:50px;
    background:#dff5fb;
    color:var(--primary);
    font-size:14px;
    font-weight:600;
    margin-bottom:20px;
}

.hero h1{
    font-size:56px;
    line-height:1.15;
    margin-bottom:20px;
    color:var(--text);
}

.hero p{
    color:var(--text-light);
    margin-bottom:35px;
    font-size:18px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.hero-card{
    background:#fff;
    padding:40px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.hero-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    background:#eef8fc;
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    margin-bottom:20px;
}

.hero-card h3{
    margin-bottom:15px;
}

.hero-card-footer{
    margin-top:25px;
    color:var(--secondary);
    font-weight:600;
}

/* =====================
   SECTIONS
===================== */

section{
    padding:90px 0;
}

.section-header{
    text-align:center;
    max-width:750px;
    margin:auto;
    margin-bottom:60px;
}

.section-header h2{
    font-size:40px;
    margin-bottom:15px;
}

.section-header p{
    color:var(--text-light);
}

/* =====================
   STATS
===================== */

.stats{
    background:#fff;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    text-align:center;
    padding:35px;
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow);
}

.stat-card h3{
    font-size:40px;
    color:var(--primary);
}

/* =====================
   SERVICES
===================== */

.services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.service-card{
    background:#fff;
    border-radius:var(--radius);
    padding:35px;
    border:1px solid var(--border);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow);
}

.service-icon{
    width:70px;
    height:70px;
    border-radius:16px;
    background:#eef8fc;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--primary);
    font-size:30px;
    margin-bottom:20px;
}

.service-card h3{
    margin-bottom:15px;
}

/* =====================
   FEATURES
===================== */

.features-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.feature-card{
    text-align:center;
    padding:35px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    transition:.3s;
}

.feature-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow);
}

.feature-card i{
    font-size:40px;
    color:var(--primary);
    margin-bottom:15px;
}

/* =====================
   CTA
===================== */

.cta{
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

.cta-box{
    text-align:center;
    color:#fff;
}

.cta-box h2{
    font-size:42px;
    margin-bottom:20px;
}

.cta-box p{
    max-width:800px;
    margin:auto;
    margin-bottom:30px;
}

/* =====================
   FORMS
===================== */

.form-group{
    margin-bottom:20px;
}

.form-control{
    width:100%;
    padding:15px;
    border:1px solid var(--border);
    border-radius:10px;
    outline:none;
}

.form-control:focus{
    border-color:var(--primary);
}

.error{
    color:#dc3545;
    font-size:14px;
    margin-top:5px;
}

.success-message{
    padding:15px;
    background:#d4edda;
    color:#155724;
    border-radius:10px;
    margin-top:20px;
}

/* =====================
   FOOTER
===================== */

.footer{
    background:#0d2232;
    color:#fff;
    padding-top:70px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
}

.footer h3,
.footer h4{
    margin-bottom:20px;
}

.footer p{
    color:#c8d2dc;
}

.footer ul li{
    margin-bottom:12px;
}

.footer a{
    color:#c8d2dc;
}

.footer a:hover{
    color:#fff;
}

.footer-bottom{
    text-align:center;
    padding:25px 0;
    margin-top:50px;
    border-top:1px solid rgba(255,255,255,.1);
    color:#b8c3cf;
}

/* =====================
   ANIMATIONS
===================== */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero-content,
.hero-card,
.service-card,
.feature-card,
.stat-card{
    animation:fadeUp .8s ease forwards;
}

/* =====================
   FOUNDERS SECTION
===================== */

.founders-section{
    background:var(--light);
}

.founders-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
    max-width:900px;
    margin:auto;
}

.founder-card{
    background:#fff;
    border-radius:var(--radius);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    overflow:hidden;
    transition:.35s ease;
    display:flex;
    flex-direction:column;
}

.founder-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 50px rgba(10,92,143,.13);
}

.founder-photo-wrap{
    position:relative;
    overflow:hidden;
    aspect-ratio:1/1.15;
    background:var(--light);
}

.founder-photo-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    transition:transform .5s ease;
    display:block;
}

.founder-card:hover .founder-photo-wrap img{
    transform:scale(1.04);
}

.founder-photo-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        transparent 60%,
        rgba(10,92,143,.18) 100%
    );
    opacity:0;
    transition:.35s;
}

.founder-card:hover .founder-photo-overlay{
    opacity:1;
}

.founder-info{
    padding:28px 30px 30px;
    flex:1;
    display:flex;
    flex-direction:column;
}

.founder-name{
    font-size:22px;
    font-weight:700;
    color:var(--text);
    margin-bottom:4px;
}

.founder-title{
    font-size:14px;
    font-weight:600;
    color:var(--secondary);
    letter-spacing:.4px;
    text-transform:uppercase;
    margin-bottom:14px;
}

.founder-bio{
    color:var(--text-light);
    font-size:15px;
    line-height:1.7;
    flex:1;
    margin-bottom:20px;
}

.founder-social{
    display:flex;
    gap:10px;
}

.founder-social-link{
    width:36px;
    height:36px;
    border-radius:50%;
    border:1.5px solid var(--border);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--text-light);
    font-size:16px;
    transition:var(--transition);
}

.founder-social-link:hover{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
    transform:scale(1.1);
}

/* =====================
   CONTACT FORM LAYOUT
===================== */

.contact-form-section{
    background:var(--light);
}

.contact-form-wrap{
    max-width:820px;
    margin:auto;
    background:#fff;
    border-radius:var(--radius);
    padding:50px;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.form-label{
    display:block;
    font-weight:600;
    font-size:14px;
    color:var(--text);
    margin-bottom:7px;
}

.form-label span{
    color:#dc3545;
    margin-left:2px;
}

.form-control{
    width:100%;
    padding:14px 16px;
    border:1.5px solid var(--border);
    border-radius:10px;
    outline:none;
    font-size:15px;
    color:var(--text);
    background:#fff;
    transition:.25s;
    font-family:inherit;
}

.form-control:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(10,92,143,.08);
}

.form-control::placeholder{
    color:#aab6c4;
}

textarea.form-control{
    resize:vertical;
    min-height:130px;
}

.char-counter{
    font-size:12px;
    color:var(--text-light);
    text-align:right;
    margin-top:4px;
}

.form-submit-row{
    margin-top:10px;
}

/* =====================
   FILE UPLOAD
===================== */

.file-upload-wrap{
    position:relative;
}

.file-input-label{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border:1.5px dashed var(--border);
    border-radius:10px;
    cursor:pointer;
    transition:.25s;
    background:#fafcff;
}

.file-input-label:hover{
    border-color:var(--primary);
    background:#f0f8ff;
}

.file-input-label i{
    font-size:20px;
    color:var(--primary);
}

#resumeFileName{
    font-size:14px;
    color:var(--text-light);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

input[type="file"].form-control{
    display:none;
}

/* =====================
   BUTTON LOADING STATE
===================== */

.btn:disabled{
    opacity:.75;
    cursor:not-allowed;
    transform:none !important;
}

.btn-spinner{
    display:inline-block;
    width:16px;
    height:16px;
    border:2.5px solid rgba(255,255,255,.4);
    border-top-color:#fff;
    border-radius:50%;
    animation:spin .7s linear infinite;
    margin-right:8px;
    vertical-align:middle;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}

/* =====================
   FORM FEEDBACK MESSAGES
===================== */

.form-feedback{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:16px 20px;
    border-radius:10px;
    font-size:15px;
    font-weight:500;
    margin-top:20px;
    animation:fadeUp .4s ease forwards;
}

.form-feedback i{
    font-size:18px;
    flex-shrink:0;
    margin-top:1px;
}

.form-feedback-success{
    background:#d4edda;
    color:#155724;
    border:1px solid #c3e6cb;
}

.form-feedback-error{
    background:#f8d7da;
    color:#721c24;
    border:1px solid #f5c6cb;
}

.error{
    color:#dc3545;
    font-size:13px;
    margin-top:5px;
    display:flex;
    align-items:center;
    gap:4px;
}

/* =====================
   AI FLOATING BUTTON
===================== */

.ethyra-ai-fab{
    position:fixed;
    bottom:90px;
    right:24px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    z-index:9998;
    box-shadow:0 8px 28px rgba(10,92,143,.35);
    transition:.3s ease;
}

.ethyra-ai-fab:hover{
    transform:translateY(-3px) scale(1.06);
    box-shadow:0 14px 36px rgba(10,92,143,.42);
}

.ethyra-ai-fab:focus-visible{
    outline:3px solid var(--accent);
    outline-offset:3px;
}

.ethyra-ai-fab-ring{
    position:absolute;
    inset:-4px;
    border-radius:50%;
    border:2px solid rgba(10,92,143,.3);
    animation:aiPulse 2.5s ease-out infinite;
    pointer-events:none;
}

@keyframes aiPulse{
    0%  { transform:scale(1);   opacity:.8; }
    70% { transform:scale(1.4); opacity:0;  }
    100%{ transform:scale(1.4); opacity:0;  }
}

.ethyra-ai-fab-tooltip{
    position:absolute;
    right:70px;
    background:#0d2232;
    color:#fff;
    font-size:13px;
    font-weight:600;
    padding:7px 13px;
    border-radius:8px;
    white-space:nowrap;
    pointer-events:none;
    opacity:0;
    transform:translateX(8px);
    transition:.25s ease;
}

.ethyra-ai-fab-tooltip::after{
    content:"";
    position:absolute;
    right:-6px;
    top:50%;
    transform:translateY(-50%);
    border:5px solid transparent;
    border-left-color:#0d2232;
}

.ethyra-ai-fab:hover .ethyra-ai-fab-tooltip,
.ethyra-ai-fab:focus-visible .ethyra-ai-fab-tooltip{
    opacity:1;
    transform:translateX(0);
}

/* =====================
   AI CHAT PANEL
===================== */

.ethyra-ai-panel{
    position:fixed;
    bottom:160px;
    right:24px;
    width:380px;
    max-height:580px;
    background:#fff;
    border-radius:20px;
    box-shadow:0 20px 60px rgba(0,0,0,.16),
               0 4px 16px rgba(10,92,143,.12);
    border:1px solid rgba(10,92,143,.1);
    display:flex;
    flex-direction:column;
    z-index:9997;
    overflow:hidden;
    opacity:0;
    transform:translateY(20px) scale(.97);
    pointer-events:none;
    transition:opacity .3s ease, transform .3s ease;
}

.ethyra-ai-panel-open{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:all;
}

/* Header */
.ethyra-ai-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 20px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    flex-shrink:0;
}

.ethyra-ai-header-info{
    display:flex;
    align-items:center;
    gap:12px;
}

.ethyra-ai-avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    flex-shrink:0;
}

.ethyra-ai-header-name{
    font-weight:700;
    font-size:15px;
}

.ethyra-ai-header-sub{
    font-size:12px;
    opacity:.85;
}

.ethyra-ai-close{
    background:rgba(255,255,255,.15);
    border:none;
    color:#fff;
    width:32px;
    height:32px;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    transition:.2s;
    flex-shrink:0;
}

.ethyra-ai-close:hover{
    background:rgba(255,255,255,.3);
}

.ethyra-ai-close:focus-visible{
    outline:2px solid #fff;
    outline-offset:2px;
}

/* Messages */
.ethyra-ai-messages{
    flex:1;
    overflow-y:auto;
    padding:18px 16px 10px;
    display:flex;
    flex-direction:column;
    gap:12px;
    scroll-behavior:smooth;
}

.ethyra-ai-messages::-webkit-scrollbar{
    width:4px;
}

.ethyra-ai-messages::-webkit-scrollbar-thumb{
    background:var(--border);
    border-radius:4px;
}

.ethyra-ai-msg{
    display:flex;
    opacity:0;
    transform:translateY(10px);
    transition:opacity .3s ease, transform .3s ease;
    max-width:88%;
}

.ethyra-ai-msg-in{
    opacity:1;
    transform:translateY(0);
}

.ethyra-ai-msg-bot{
    align-self:flex-start;
}

.ethyra-ai-msg-user{
    align-self:flex-end;
    flex-direction:row-reverse;
}

.ethyra-ai-bubble{
    padding:11px 15px;
    border-radius:16px;
    font-size:14px;
    line-height:1.6;
}

.ethyra-ai-msg-bot .ethyra-ai-bubble{
    background:var(--light);
    color:var(--text);
    border-bottom-left-radius:4px;
    border:1px solid var(--border);
}

.ethyra-ai-msg-user .ethyra-ai-bubble{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    border-bottom-right-radius:4px;
}

/* Typing indicator */
.ethyra-ai-typing-bubble{
    display:flex;
    align-items:center;
    gap:5px;
    padding:14px 18px;
}

.ethyra-ai-typing-dot{
    width:7px;
    height:7px;
    background:var(--text-light);
    border-radius:50%;
    animation:typingBounce 1.2s ease infinite;
}

.ethyra-ai-typing-dot:nth-child(2){ animation-delay:.2s; }
.ethyra-ai-typing-dot:nth-child(3){ animation-delay:.4s; }

@keyframes typingBounce{
    0%,80%,100%{ transform:translateY(0); opacity:.5; }
    40%        { transform:translateY(-5px); opacity:1; }
}

/* Link button inside message */
.ethyra-ai-link-wrap{
    margin-top:8px;
}

.ethyra-ai-link-btn{
    display:inline-block;
    padding:7px 16px;
    border-radius:50px;
    background:var(--primary);
    color:#fff;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    transition:.2s;
}

.ethyra-ai-link-btn:hover{
    background:var(--primary-dark);
    transform:translateY(-1px);
}

/* Quick question pills */
.ethyra-ai-quick{
    padding:8px 14px 10px;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    flex-shrink:0;
    border-top:1px solid var(--border);
}

.ethyra-ai-quick-btn{
    background:#eef8fc;
    color:var(--primary);
    border:1px solid rgba(10,92,143,.15);
    border-radius:50px;
    padding:6px 13px;
    font-size:12.5px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    font-family:inherit;
    text-align:left;
}

.ethyra-ai-quick-btn:hover{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

.ethyra-ai-quick-btn:focus-visible{
    outline:2px solid var(--primary);
    outline-offset:2px;
}

/* Input row */
.ethyra-ai-input-row{
    display:flex;
    gap:8px;
    padding:12px 14px 14px;
    border-top:1px solid var(--border);
    background:#fafcff;
    flex-shrink:0;
}

.ethyra-ai-input{
    flex:1;
    border:1.5px solid var(--border);
    border-radius:50px;
    padding:10px 16px;
    font-size:14px;
    font-family:inherit;
    color:var(--text);
    outline:none;
    background:#fff;
    transition:.2s;
}

.ethyra-ai-input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(10,92,143,.07);
}

.ethyra-ai-input:disabled{
    background:var(--light);
    cursor:not-allowed;
}

.ethyra-ai-send{
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    flex-shrink:0;
    transition:.2s;
}

.ethyra-ai-send:hover:not(:disabled){
    background:var(--primary-dark);
    transform:scale(1.07);
}

.ethyra-ai-send:disabled{
    opacity:.5;
    cursor:not-allowed;
    transform:none;
}

.ethyra-ai-send:focus-visible{
    outline:2px solid var(--primary);
    outline-offset:3px;
}

/* Footer trigger link */
a.ethyra-ai-footer-trigger{
    cursor:pointer;
    color:#c8d2dc;
}

a.ethyra-ai-footer-trigger:hover{
    color:#fff;
}