:root {
    --primary: #00d2ff;
    --secondary: #0052d4;
    --dark: #050a18;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(0, 210, 255, 0.2);
    --text: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* --- ANIMASAUN BACKGROUND --- */
.neural-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a192f, #050a18);
    overflow: hidden;
}

#neuralCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.4; /* Atu liña sira la kail de'it */
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
}

/* Bola 1: Azúl Nakroman */
.shape-1 {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -10%; left: -10%;
    animation-duration: 25s;
}

/* Bola 2: Azúl Kle'an */
.shape-2 {
    width: 500px; height: 500px;
    background: var(--secondary);
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

/* Bola 3: Cyan (Foun) */
.shape-3 {
    width: 300px; height: 300px;
    background: #00f2ff;
    top: 40%; left: 50%;
    animation-duration: 15s;
    animation-delay: -2s;
}

/* Animasaun Semo (Floating) */
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 150px) scale(1.2); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: move 20s infinite alternate; }
.shape-1 { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -10%; }
.shape-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -5%; right: -5%; }

@keyframes move {
    from { transform: translate(0,0); }
    to { transform: translate(100px, 50px); }
}

/* Glassmorphism Navigation */
header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 5%; }
.glass-nav {
    background: rgba(6, 11, 25, 0.8); backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); padding: 15px 30px; border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { color: var(--primary); font-weight: 800; text-decoration: none; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 150%; left: 0; width: 180px; display: none;
    background: rgba(6, 11, 25, 0.95); padding: 15px; border-radius: 15px;
    border: 1px solid var(--glass-border); list-style: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { margin-bottom: 10px; }

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 5%; text-align: center; }
.hero-content { padding: 60px; max-width: 850px; }
.hero h1 { font-size: 4rem; margin: 20px 0; background: linear-gradient(to right, #fff, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.badge { color: var(--primary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; }

/* Sections */
.content-section { padding: 100px 10%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: white; letter-spacing: 2px; }
.glass { background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 25px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { padding: 40px; text-align: center; transition: 0.3s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(0, 210, 255, 0.05); }
.icon-blue { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* Rules Box */
.rules-container { padding: 40px; }
.rule-box { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 15px; margin-bottom: 15px; border-left: 4px solid var(--primary); }
.blue-text { color: var(--primary); font-weight: bold; }

/* Hexagon */
.hexagon-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.hexagon-inner { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 15px; transition: 0.3s; }
.hexagon-inner:hover { border-color: var(--primary); color: var(--primary); }

/* Slideshow */
.slideshow-container { position: relative; max-width: 800px; margin: auto; overflow: hidden; border-radius: 25px; }
.mySlides { display: none; }
.mySlides img { height: 450px; object-fit: cover; }
.prev, .next { position: absolute; top: 50%; padding: 16px; color: white; font-weight: bold; cursor: pointer; background: rgba(0,0,0,0.3); border-radius: 50%; margin: 0 10px; text-decoration: none; }
.next { right: 0; }
.caption { position: absolute; bottom: 0; width: 100%; text-align: center; background: rgba(0,0,0,0.6); padding: 15px; color: var(--primary); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
.contact-info, .contact-form { padding: 40px; }
.social-icons { display: flex; gap: 20px; margin-top: 20px; font-size: 1.5rem; color: var(--primary); }
input, textarea { width: 100%; padding: 15px; margin-bottom: 20px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 10px; color: white; outline: none; }
input:focus, textarea:focus { border-color: var(--primary); }

/* Buttons */
.btn { padding: 12px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; cursor: pointer; border: none; transition: 0.3s; display: inline-block; }
.btn-primary { background: var(--primary); color: var(--dark); }
.btn-primary:hover { box-shadow: 0 0 20px var(--primary); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; margin-left: 10px; }
.btn-outline:hover { background: var(--primary); color: var(--dark); }

footer { text-align: center; padding: 50px; border-top: 1px solid var(--glass-border); margin-top: 50px; color: #888; }

/* Mobile Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2, .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
}
/* Style foun ba esplikasaun reasoning */
.card-divider {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 20px 0;
}

.reasoning-list {
    list-style: none;
    text-align: left;
    padding: 0;
}

.reasoning-list li {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #b0b0b0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.reasoning-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.reasoning-list li strong {
    color: var(--primary);
}
/* Layout ba Vantajen (4 Columns) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-card {
    padding: 30px 20px;
    text-align: center;
    transition: 0.4s;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--primary);
}

.advantage-card h3 {
    font-size: 1.1rem;
    margin: 15px 0;
    color: white;
}

.advantage-card p {
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.5;
}

.icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Highlight ba 'Rai Koñesimentu' hanesan iha imajen */
.highlight-blue {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.highlight-blue h3 {
    color: var(--primary);
}

/* Responsividade ba Mobile */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr; /* Sai 2 columns iha Tablet */
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr; /* Sai 1 column de'it iha HP */
    }
}
/* Ajuste ba Grid Reasoning */
#reasoning .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 koluna iha desktop */
    gap: 25px;
}

/* Halo kaisa sira iha altura ne'ebé hanesan */
#reasoning .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

/* Responsividade ba Mobile */
@media (max-width: 768px) {
    #reasoning .grid-2 {
        grid-template-columns: 1fr; /* Koluna 1 de'it iha HP */
    }
}
/* Style ba Komponente Prinsipál */
.icon-box-large {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.description-main {
    font-size: 1rem;
    color: white;
    margin-bottom: 15px;
}

.detail-text {
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.6;
    text-align: justify;
}

.card-divider {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 15px 0;
}

/* Highlight ba Inference Engine hanesan iha imajen */
.highlight-blue {
    border: 1px solid var(--primary) !important;
    background: rgba(0, 210, 255, 0.05);
}
/* --- SECTION DEFINITION STYLE --- */
.definition-wrapper {
    padding: 50px;
    margin-top: -50px; /* Atu besik uitoan ba Hero */
    border: 1px solid var(--glass-border);
}

.definition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.definition-item {
    text-align: left;
}

.def-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 15px;
}

.definition-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.definition-item p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.definition-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-style: italic;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Responsive ba Mobile */
@media (max-width: 992px) {
    .definition-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .definition-wrapper {
        padding: 30px;
    }
}
/* --- HISTORY TIMELINE STYLE --- */
.timeline-container {
    padding: 40px;
    position: relative;
}

.history-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.history-item:last-child { margin-bottom: 0; }

.history-year {
    background: var(--primary);
    color: var(--dark);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 100px;
    height: fit-content;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.history-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.history-content p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Liña iha klaran timeline */
.history-item::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 50px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--glass-border);
    z-index: -1;
}
.history-item:last-child::before { display: none; }

/* Responsive Timeline */
@media (max-width: 768px) {
    .history-item { flex-direction: column; gap: 15px; }
    .history-item::before { display: none; }
}
/* --- VIDEO SECTION STYLE --- */
.video-card {
    padding: 0 !important; /* Hamoos padding hodi video bele nakonu */
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 25px;
    text-align: left;
}

.video-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.video-info p {
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Hover effect ba video card */
.video-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}
/* --- TEAM SECTION STYLE --- */
.team-card {
    padding: 30px;
    text-align: center;
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.social-icons-small {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons-small a {
    color: #888;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icons-small a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}
