/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

:root{
    --bg:#0b1220;
    --bg-soft:#111827;
    --card:#161f2e;
    --text:#f8fafc;
    --muted:#cbd5e1;
    --primary:#00bfff;
    --primary-dark:#0284c7;
    --border:rgba(255,255,255,0.12);
    --shadow:0 12px 35px rgba(0,0,0,0.35);
    --slide-height:780px;
    --slide-height-mobile:270px;
}

body.light-theme{
    --bg:#f5f7fb;
    --bg-soft:#e9edf5;
    --card:#ffffff;
    --text:#0f172a;
    --muted:#475569;
    --primary:#0284c7;
    --primary-dark:#0369a1;
    --border:rgba(15,23,42,0.16);
    --shadow:0 10px 26px rgba(15,23,42,0.12);
}

/* =========================
   BODY
========================= */
body{
    font-family:'Poppins', sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(14,165,233,0.12), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(30,58,138,0.20), transparent 35%),
        var(--bg);
    color:var(--text);
    line-height:1.65;
}

/* =========================
   CONTAINER
========================= */
.container{
    width:min(92%, 1200px);
    margin:auto;
}

/* =========================
   HEADER
========================= */
header{
    background:rgba(17,24,39,0.88);
    backdrop-filter:blur(10px);
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:1px solid var(--border);
}

body.light-theme header{
    background:rgba(255,255,255,0.92);
    border-bottom:1px solid rgba(15,23,42,0.14);
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:14px 0;
}

.top-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.language-select{
    background:#111827;
    color:var(--text);
    border:1px solid var(--border);
    border-radius:10px;
    padding:8px 10px;
    font-family:inherit;
}

.language-select option{
    background:#111827;
    color:#f8fafc;
}

body.light-theme .language-select{
    background:#ffffff;
    color:#0f172a;
    border-color:rgba(15,23,42,0.2);
}

body.light-theme .theme-toggle{
    background:#ffffff;
    color:#0f172a;
    border-color:rgba(15,23,42,0.2);
}

.theme-toggle{
    border:1px solid var(--border);
    background:transparent;
    color:var(--text);
    border-radius:10px;
    padding:8px 12px;
    cursor:pointer;
    font-size:16px;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:var(--text);
}

.logo-area h2{
    margin:0;
    display:flex;
    align-items:center;
}

.logo-area .logo-img{
    width:220px;
    height:auto;
    display:block;
}

.logo-area .light-logo{
    display:none;
}

body.light-theme .logo-area .dark-logo{
    display:none;
}

body.light-theme .logo-area .light-logo{
    display:block;
}

body.light-theme .logo-area,
body.light-theme nav ul li a{
    color:#0f172a;
}

/* =========================
   NAVBAR
========================= */
nav ul{
    display:flex;
    list-style:none;
    gap:22px;
    align-items:center;
}

nav ul li a{
    color:var(--text);
    text-decoration:none;
    transition:0.25s ease;
    font-weight:500;
    position:relative;
    padding:4px 0;
}

nav ul li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:var(--primary);
    transition:0.25s ease;
}

nav ul li a:hover,
nav ul li a.active{
    color:var(--primary);
}

body.light-theme nav ul li a:hover,
body.light-theme nav ul li a.active{
    color:#0369a1;
}

nav ul li a:hover::after,
nav ul li a.active::after{
    width:100%;
}

.menu-toggle{
    display:none;
    border:none;
    background:transparent;
    color:var(--text);
    font-size:32px;
    cursor:pointer;
    line-height:1;
}

/* =========================
   HERO
========================= */
.hero{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:90px 0 50px;
}

.hero-content{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:50px;
    align-items:center;
}

.tagline{
    display:inline-block;
    margin-bottom:14px;
    font-size:14px;
    font-weight:600;
    color:#7dd3fc;
    background:rgba(14,165,233,0.15);
    border:1px solid rgba(125,211,252,0.4);
    padding:6px 12px;
    border-radius:999px;
}

.hero-text h1{
    font-size:clamp(2rem, 4.8vw, 3.4rem);
    line-height:1.18;
    margin-bottom:18px;
}

.hero-text p{
    margin-bottom:26px;
    color:var(--muted);
    max-width:65ch;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-secondary{
    display:inline-block;
    text-decoration:none;
    padding:13px 26px;
    border-radius:10px;
    transition:0.25s ease;
    font-weight:600;
    border:1px solid transparent;
}

.btn-primary{
    background:var(--primary);
    color:white;
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

.btn-secondary{
    background:transparent;
    color:var(--text);
    border-color:var(--border);
}

.btn-secondary:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.hero-image img{
    width:100%;
    filter:drop-shadow(0 8px 30px rgba(0,0,0,0.35));
}

/* =========================
   SECTIONS
========================= */
.about,
.services,
.contact,
.page-section{
    padding:95px 0;
}

.hero-slider-block{
    width:100%;
    margin-top:5px;
}

.slider-header{
    text-align:center;
    margin-bottom:10px;
}

.slider-header h2{
    font-size:clamp(1.5rem, 3.2vw, 2.2rem);
    margin-bottom:10px;
}

.slider-header p{
    color:var(--muted);
    max-width:70ch;
    margin:0 auto;
}

.slider{
    position:relative;
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    background:var(--card);
    box-shadow:var(--shadow);
}

.slides-wrapper{
    position:relative;
    height:var(--slide-height);
    overflow:hidden;
}

.slide-content{
    background:linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 40, 0.98));
    padding:34px;
}

.slide-content-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:40px;
    align-items:center;
    height:100%;
}

.slide-content .hero-text p{
    margin-bottom:22px;
}

.slide-content .hero-image img{
    width:100%;
    max-height:320px;
    object-fit:contain;
}

.slide{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:14px 56px;
    opacity:0;
    transform:translateX(0);
    pointer-events:none;
    z-index:1;
}

.slide.is-active{
    opacity:1;
    pointer-events:auto;
    z-index:2;
}

.slide.is-entering-next{
    opacity:1;
    z-index:4;
    animation:slideInFromRight 0.6s ease forwards;
}

.slide.is-entering-prev{
    opacity:1;
    z-index:4;
    animation:slideInFromLeft 0.6s ease forwards;
}

.slide.is-leaving-next{
    opacity:1;
    z-index:3;
    animation:slideOutToLeft 0.6s ease forwards;
}

.slide.is-leaving-prev{
    opacity:1;
    z-index:3;
    animation:slideOutToRight 0.6s ease forwards;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    border-radius:14px;
}

.slide-overlay{
    position:absolute;
    inset:auto 0 0 0;
    padding:20px;
    background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 90%);
}

.slide-overlay h3{
    margin-bottom:8px;
    font-size:1.35rem;
    color:#f8fafc;
    text-shadow:0 2px 10px rgba(0,0,0,0.7);
}

body.light-theme .slide-overlay{
    background:linear-gradient(180deg, rgba(2,6,23,0.08) 0%, rgba(2,6,23,0.82) 100%);
}

body.light-theme .slide-overlay h3{
    color:#ffffff;
    text-shadow:0 2px 12px rgba(0,0,0,0.85);
}

.slide-overlay p{
    color:#e5edf6;
    max-width:58ch;
}

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:5;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(2, 6, 23, 0.65);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    transition:0.2s ease;
}

.slider-btn:hover{
    background:rgba(2, 6, 23, 0.92);
}

.slider-btn.prev{
    left:12px;
}

.slider-btn.next{
    right:12px;
}

.slider-dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:14px;
}

.slider-dot{
    width:11px;
    height:11px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.4);
    cursor:pointer;
    transition:0.2s ease;
}

.slider-dot.active{
    background:var(--primary);
    transform:scale(1.1);
}

@keyframes slideInFromRight{
    from{
        opacity:1;
        transform:translateX(100%);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes slideInFromLeft{
    from{
        opacity:1;
        transform:translateX(-100%);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes slideOutToLeft{
    from{
        opacity:1;
        transform:translateX(0);
    }
    to{
        opacity:1;
        transform:translateX(-100%);
    }
}

@keyframes slideOutToRight{
    from{
        opacity:1;
        transform:translateX(0);
    }
    to{
        opacity:1;
        transform:translateX(100%);
    }
}

.section-title{
    text-align:center;
    margin-bottom:55px;
}

.section-title h2{
    font-size:clamp(1.8rem, 3.5vw, 2.7rem);
    margin-bottom:12px;
}

.section-title p{
    color:var(--muted);
    max-width:76ch;
    margin:0 auto;
}

/* =========================
   CARDS
========================= */
.about-grid,
.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.about-card,
.service-card{
    background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border:1px solid var(--border);
    padding:28px;
    border-radius:18px;
    transition:0.25s ease;
    box-shadow:var(--shadow);
}

.about-card:hover,
.service-card:hover{
    transform:translateY(-8px);
    border-color:rgba(0,191,255,0.55);
}

.about-card h3,
.service-card h3{
    margin-bottom:12px;
    font-size:1.15rem;
}

.about-card p,
.service-card p{
    color:var(--muted);
}

.service-card img{
    width:72px;
    margin-bottom:16px;
}

/* =========================
   CONTACT
========================= */
.contact-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:38px;
    align-items:start;
}

.contact-info h2{
    margin-bottom:14px;
    font-size:clamp(1.7rem, 3vw, 2.2rem);
}

.contact-info p{
    color:var(--muted);
    margin-bottom:18px;
}

.contact-item{
    margin-top:12px;
    color:var(--text);
}

.contact form,
.contact-form{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.contact form input,
.contact form textarea,
.contact-form input,
.contact-form textarea{
    width:100%;
    padding:14px 16px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--card);
    color:var(--text);
    outline:none;
    transition:0.2s ease;
    font-family:inherit;
    font-size:1rem;
    line-height:1.4;
}

.contact form input:focus,
.contact form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(0,191,255,0.15);
}

.contact form textarea,
.contact-form textarea{
    min-height:140px;
    resize:vertical;
}

.contact form button,
.contact-form button{
    align-self:flex-start;
    background:var(--primary);
    border:none;
    padding:14px 18px;
    border-radius:10px;
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.25s;
}

.contact form button:hover,
.contact-form button:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

/* =========================
   FLOATING ACTIONS
========================= */
.whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#25d366;
    color:white;
    padding:13px 18px;
    border-radius:999px;
    text-decoration:none;
    font-weight:600;
    z-index:1000;
    box-shadow:var(--shadow);
}

.back-to-top{
    position:fixed;
    right:20px;
    bottom:90px;
    width:52px;
    height:52px;
    border:1px solid rgba(255,255,255,0.22);
    border-radius:16px;
    background:linear-gradient(145deg, #1d4ed8, #0ea5e9);
    color:#fff;
    font-size:24px;
    font-weight:700;
    cursor:pointer;
    z-index:1002;
    box-shadow:0 16px 30px rgba(14,165,233,0.34);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    transform:translateY(12px) scale(0.96);
    transition:transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.back-to-top:hover{
    background:linear-gradient(145deg, #2563eb, #06b6d4);
    transform:translateY(-2px) scale(1.02);
    box-shadow:0 18px 34px rgba(14,165,233,0.45);
}

.back-to-top:active{
    transform:translateY(0) scale(0.98);
}

.back-to-top:focus-visible{
    outline:none;
    box-shadow:0 0 0 3px rgba(56,189,248,0.35), 0 16px 30px rgba(14,165,233,0.34);
}

.chatbot-widget{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:1001;
}

.chatbot-toggle{
    width:58px;
    height:58px;
    border:1px solid rgba(255,255,255,0.22);
    border-radius:18px;
    background:linear-gradient(145deg, #25d366, #128c7e);
    color:white;
    font-size:30px;
    cursor:pointer;
    box-shadow:0 18px 34px rgba(18,140,126,0.35);
    backdrop-filter:blur(6px);
    transition:transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.chatbot-toggle:hover{
    transform:translateY(-3px) scale(1.03);
    box-shadow:0 20px 36px rgba(37,211,102,0.38);
    filter:saturate(1.1);
}

.chatbot-toggle:active{
    transform:translateY(0) scale(0.98);
}

.chatbot-toggle:focus-visible{
    outline:none;
    box-shadow:0 0 0 3px rgba(37,211,102,0.35), 0 18px 34px rgba(18,140,126,0.35);
}

.chatbot-box{
    position:absolute;
    right:0;
    bottom:64px;
    width:280px;
    background:#101a2b;
    border:1px solid var(--border);
    border-radius:14px;
    padding:14px;
    box-shadow:var(--shadow);
    display:none;
}

.chatbot-box.show{
    display:block;
}

.chatbot-box h3{
    font-size:1rem;
    margin-bottom:8px;
}

.chatbot-box p{
    color:var(--muted);
    font-size:0.9rem;
    margin-bottom:12px;
}

.chatbot-cta{
    display:inline-block;
    width:100%;
    text-align:center;
    text-decoration:none;
    background:#25d366;
    color:white;
    font-weight:600;
    padding:10px 12px;
    border-radius:8px;
}

/* =========================
   FOOTER
========================= */
footer{
    background:var(--bg-soft);
    border-top:1px solid var(--border);
    text-align:center;
    padding:24px 0;
}

.footer-content p{
    color:#d6dee9;
    font-size:0.95rem;
}

body.light-theme .footer-content p{
    color:#0f172a;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:992px){
    .hero-content,
    .about-grid,
    .services-grid,
    .contact-grid{
        grid-template-columns:1fr;
    }

    .hero{
        min-height:auto;
        padding-top:70px;
    }

    .hero-image{
        order:-1;
    }

    .services-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .logo-area .logo-img{
        width:160px;
    }

    .menu-toggle{
        display:block;
    }

    nav{
        display:none;
        position:absolute;
        top:74px;
        left:0;
        width:100%;
        background:#111827;
        border-bottom:1px solid var(--border);
    }

    nav.active{
        display:block;
    }

    nav ul{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
        padding:18px 22px;
    }

    .services-grid{
        grid-template-columns:1fr;
    }

    .slides-wrapper{
        height:var(--slide-height-mobile);
    }

    .slide{
        padding:10px 42px;
    }

    .slide-content{
        padding:22px;
    }

    .slide-content-grid{
        grid-template-columns:1fr;
        gap:18px;
        height:100%;
    }

    .slide-content .hero-image{
        order:-1;
    }

    .slider-btn{
        width:36px;
        height:36px;
        font-size:20px;
    }

    .chatbot-widget{
        right:16px;
        bottom:16px;
    }

    .chatbot-box{
        width:250px;
    }

    .back-to-top{
        right:16px;
        bottom:84px;
    }

    .whatsapp{
        right:16px;
    }
}
