 🌞 Light mode (default) 
:root {
    --brand: #5cc0ef;  light blue accent 
    --bg: #f8fdff;  slightly brightened soft light blue background 
    --text: #0f1724;  deep neutral text 
    --muted: #6b7280;  muted gray for subtext 
    --header-bg: rgba(92,192,239,0.15);  soft glowing header tint 
}

/* 🌙 Dark mode (activated when body has .dark class) */
body.dark {
    --bg: #0e1628; /* modern navy-gray background */
    --text: #eaf3ff; /* clean white-blue text */
    --muted: #a0b7d4; /* muted light blue-gray for subtext */
    --header-bg: rgba(25,35,50,0.6); /* slightly bluish dark header */
}

/* Base body styles */


body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}




.brand .logo{
  height:48px;
}



.controls{
  margin-left:auto;
  display:flex;
  gap:0.5rem;
}

.lang-btn, .theme-btn{
  border:1px solid rgba(0,0,0,0.06);
  background:transparent;
  padding:0.4rem 0.6rem;
  border-radius:6px;
  cursor:pointer;
}

.main{
  padding:2rem;
  max-width:1000px;
  margin:0 auto;
}

h1{
  color:var(--text);
}

.card{
  background: linear-gradient(180deg, rgba(92,192,239,0.04), transparent);
  border:1px solid rgba(0,0,0,0.06);
  padding:1rem;
  border-radius:8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.footer{
  padding:1rem 2rem;
  border-top:1px solid rgba(0,0,0,0.04);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
}
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* نمونه برای ناوبری */
[dir="rtl"] .nav a {
    margin-left: 0.6rem;
    margin-right: 0;
}

.controls {
    margin-left: auto;
    margin-right: 0; /* ensure proper alignment in RTL */
    display: flex;
    gap: 0.5rem;
}

/* RTL adjustments */
[dir="rtl"] .controls {
    margin-left: 0;
    margin-right: auto; /* push controls to the left in RTL */
    flex-direction: row-reverse; /* reverse button order for RTL */
}

/* when page has scrolled a bit, add subtle lift */
.topbar.scrolled{
  box-shadow: 0 10px 30px rgba(15,23,36,0.12);
  transform: translateY(-2px);
}

/* ensure main content is not hidden behind fixed header */
.page {
  padding-top: 72px; /* matches topbar height */
}


/* active/visited highlight */
.nav a.active, .nav a:focus, .nav a:hover{
  background: linear-gradient(90deg, rgba(92,192,239,0.12), rgba(92,192,239,0.06));
  box-shadow: 0 6px 18px rgba(92,192,239,0.08);
  color: var(--text);
  backdrop-filter: blur(6px);
}



/* ----------------------------- */
/* LOGO SWITCH (LIGHT/DARK) */
/* ----------------------------- */

/* Default (light mode) */
.logo {
    height: 80px;
    width: auto;
    transition: filter 0.3s ease, content 0.3s ease;
    /* Optional: make it slightly brighter in dark mode */
}

/* Default: light mode shows light logo */
body:not(.dark) .logo {
    content: url("/images/logo-dark.png");
}

/* Dark mode: swap to dark logo */
body.dark .logo {
    content: url("/images/logo-light.png");
}





/* ============================= */
/* NAVIGATION */
/* ============================= */

.nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}

    /* Common nav link styles */
    .nav a, .nav-link {
        font-weight: 600;
        text-decoration: none;
        padding: 0.65rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
        line-height: 1.2;
        transition: all 0.24s ease;
        backdrop-filter: blur(4px);
        position: relative;
        color: #0f1724; /* default light mode */
    }

        /* Hover & active effects */
        .nav a:hover, .nav-link:hover {
            background: rgba(92,192,239,0.12);
            color: #0077b6;
        }

        .nav a.active, .nav-link.active {
            background: rgba(92,192,239,0.22);
            color: #0077b6;
            font-weight: 700;
            box-shadow: 0 0 10px rgba(92,192,239,0.18);
            animation: pulseBlur 2.5s ease infinite;
        }

@keyframes pulseBlur {
    0%,100% {
        filter: blur(0.3px);
    }

    50% {
        filter: blur(0.6px);
    }
}

/* Underline animation */
.nav a::after, .nav-link::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: #0077b6;
    border-radius: 2px;
    transition: width 0.3s ease;
    margin-top: 6px;
}

.nav a:hover::after, .nav-link:hover::after,
.nav a.active::after, .nav-link.active::after {
    width: 100%;
}


/* ============================= */
/* DESKTOP NAV                    */
/* ============================= */
@media(min-width:769px) {
    .nav {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: transparent;
        padding: 0;
    }

    .menu-toggle {
        display: none;
    }

    /* LTR mirrors Persian */
    body[dir="ltr"] .nav {
        justify-content: flex-end;
    }

    body[dir="rtl"] .nav {
        justify-content: flex-start;
    }
}




/* ============================= */
/* MOBILE NAV - LIGHT MODE   */
/* ============================= */

@media(max-width:768px) {
    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0.6rem;
        gap: 0.25rem;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(10px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.28s ease, transform 0.28s ease;
        overflow-y: auto;
        z-index: 9999;
        box-sizing: border-box;
    }

        .nav.open {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .nav a, .nav-link {
            display: block;
            width: 100%;
            padding: 0.9rem 1rem;
            border-radius: 10px;
            margin: 0.25rem 0;
        }

    /* LTR mirrors Persian */
    body[dir="ltr"] .nav {
        flex-direction: column-reverse;
    }

    body[dir="rtl"] .nav {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        cursor: pointer;
        padding: 0.4rem;
        border-radius: 6px;
        background: transparent;
        border: none;
        transition: all 0.3s;
    }

        .menu-toggle:hover {
            background: rgba(92,192,239,0.12);
        }
}





/* ============================= */
/* MOBILE NAV — DARK MODE         */
/* ============================= */

@media(max-width:768px) {
    body.dark .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        flex-direction: column; /* same as light mode for mobile */
        padding: 1rem 0.6rem;
        gap: 0.25rem;
        background: rgba(10,25,40,0.92); /* dark background */
        backdrop-filter: blur(12px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.28s ease, transform 0.28s ease;
        overflow-y: auto;
        z-index: 9999;
        box-sizing: border-box;
    }

        body.dark .nav.open {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        body.dark .nav a,
        body.dark .nav-link {
            display: block;
            width: 100%;
            padding: 0.9rem 1rem;
            border-radius: 10px;
            margin: 0.25rem 0;
            background: rgba(255,255,255,0.04); /* subtle dark-mode background for links */
            color: #d6eaff; /* link text color for dark mode */
        }

    /* LTR/Persian mirrors only on desktop, keep mobile column */
    @media(min-width:769px) {
        body[dir="ltr"] .nav {
            flex-direction: column-reverse;
        }

        body[dir="rtl"] .nav {
            flex-direction: column;
        }
    }

    body.dark .menu-toggle {
        display: block;
        font-size: 1.6rem;
        cursor: pointer;
        padding: 0.4rem;
        border-radius: 6px;
        background: transparent;
        border: none;
        transition: all 0.3s;
        color: #e6eef8; /* dark mode toggle color */
    }

        body.dark .menu-toggle:hover {
            background: rgba(92,192,239,0.12);
        }
}






/* ----------------------------- 
 CONTROLS (LANG + THEME TOGGLE) */
/* -----------------------------*/ 
.controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Common style for both buttons */
.lang-btn,
.theme-btn {
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.4);
    color: #0f1724;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

     Hover effects 
    .lang-btn:hover,
    .theme-btn:hover {
        background: rgba(92, 192, 239, 0.15);
        color: #0077b6;
        transform: scale(1.07);
        box-shadow: 0 0 12px rgba(92, 192, 239, 0.2);
        cursor: pointer;
    }

/* Click pulse animation */
@keyframes clickPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(92,192,239,0);
    }

    50% {
        transform: scale(0.9);
        box-shadow: 0 0 15px rgba(92,192,239,0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(92,192,239,0);
    }
}

.lang-btn:active,
.theme-btn:active {
    animation: clickPulse 0.35s ease;
}

/* ----------------------------- */
/* DARK MODE STYLES */
 ----------------------------- 
.dark .topbar {
    background: rgba(10, 20, 35, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
}
/* ---------- Dark Mode Global Background ---------- */
body.dark {
    background: #121826;  deep bluish-gray background 
    color: #e6eef8;  readable light text 
    transition: background 0.4s ease, color 0.4s ease;
}

     Optional main content wrapper 
    body.dark .main-content,
    body.dark .content-wrapper {
        background: rgba(18, 24, 38, 0.95);
        color: #e6eef8;
        transition: background 0.4s ease, color 0.4s ease;
    }

/* ---------- Dark Mode Navigation ---------- */
.dark .nav a {
    color: #e6eef8;
    transition: all 0.3s ease;
}

    .dark .nav a:hover {
        background: rgba(92, 192, 239, 0.2);
        color: #5cc0ef;
    }

    .dark .nav a.active {
        background: rgba(92, 192, 239, 0.3);
        backdrop-filter: blur(10px);
        color: #5cc0ef;
        box-shadow: 0 0 15px rgba(92, 192, 239, 0.3);
    }
/*
 ---------- Dark Mode Sidebar ---------- */
body.dark .sidebar {
    background: #1a2335;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- Dark Mode Header / Navbar ---------- */
body.dark header,
body.dark .navbar {
    background: #1a2233;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease;
}

/* ---------- Dark Mode Buttons ---------- */
.dark .lang-btn,
.dark .theme-btn {
    color: #e6eef8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .dark .lang-btn:hover,
    .dark .theme-btn:hover {
        background: rgba(92, 192, 239, 0.2);
        color: #5cc0ef;
        transform: scale(1.07);
        box-shadow: 0 0 15px rgba(92, 192, 239, 0.3);
    }

/* ---------- Dark Mode Tables ---------- 
*/body.dark table {
    background: rgba(255, 255, 255, 0.03);
    color: #e6eef8;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark thead {
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Dark Mode Cards ---------- */
body.dark .card {
    background: rgba(25, 35, 50, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: background 0.4s ease, border 0.4s ease;
}

/* ---------- Dark Mode Inputs ---------- */
body.dark input,
body.dark textarea,
body.dark select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6eef8;
}

    body.dark input:focus,
    body.dark textarea:focus,
    body.dark select:focus {
        border-color: #5cc0ef;
        box-shadow: 0 0 8px rgba(92, 192, 239, 0.4);
    }

 ---------- Smooth Transition for Everything ---------- 
* {
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}








/* --- hero section --- */

.kcl-hero {
    padding: 60px 0;
    background: rgba(235, 251, 252, 1);
    border-radius: 8px;
    transition: all 0.4s ease; /* smooth hover */
    backdrop-filter: blur(0px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: scale(1);
}

    /* Soft hover effect */
    .kcl-hero:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.hero-art {
    background: linear-gradient(180deg, rgba(235, 251, 252, 0.8), transparent);
    border-radius: 8px;
    transition: all 0.4s ease; /* smooth hover transition */
    backdrop-filter: blur(0px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: scale(1);
}

    /* Hover effect */
    .hero-art:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.hero-grid {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.hero-copy h1 {
    font-size: 40px;
    margin: 0 0 12px 0;
}

.lead {
    font-size: 18px;
    color: var(--muted,#555);
    margin-bottom: 18px;
}

.hero-ctas .btn {
    margin-right: 12px;
}

.kcl-section {
    padding: 48px 0;
}

    .kcl-section.kcl-alt {
        background: #fbfbfd;
    }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.two-col {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ===== Dark Mode Adjustments ===== */
.dark .kcl-hero {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
}

    .dark .kcl-hero:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

/* Hero art dark mode */
.dark .hero-art {
    background: rgba(40, 60, 74, 1); /* dark background */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 8px;
    transition: all 0.4s ease;
}

    .dark .hero-art:hover {
        background: rgba(79, 88, 95, 1);
        backdrop-filter: blur(10px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.25);
        transform: scale(1.05);
        cursor: pointer;
    }

/* Text color adjustments in dark mode */
.dark .hero-copy h1,
.dark .hero-copy .lead,
.dark .hero-ctas .btn {
    color: #f0ebeb; /* white text in dark mode */
}

/* Hero-art card text in dark mode */
.dark .hero-art .hero-card,
.dark .hero-art .hero-card h3
{
    color: #ffffff; /* gray text in dark mode */
}
    .dark .hero-art .hero-card,
    .dark .hero-art .hero-card ul,
    .dark .hero-art .hero-card ul li {
        color: #d1cfcf;
    }

/* Optional: accent color for emphasis */
.dark .hero-copy h1 strong {
    color: #67bed9; /* light blue accent remains */
}


/* ================= HERO RESPONSIVE ================= */

@media (max-width: 992px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-copy h1 {
        font-size: 32px;
    }

    .lead {
        font-size: 16px;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .hero-ctas button {
            width: 100%;
        }

    .hero-art {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-copy h1 {
        font-size: 26px;
    }

    .lead {
        font-size: 15px;
    }
}


/* ===== About Section ===== */
.about-section1 {
    max-width: 950px;
    margin: 100px auto;
    padding: 60px 40px;
    text-align: center;
    background: rgba(235, 251, 252, 1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover gives a soft lift */
    .about-section1:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Heading */
    .about-section1 h1 {
        font-size: 2.4rem;
        font-weight: 700;
        color: #004c91;
        margin-bottom: 25px;
    }

    /* Paragraphs - slightly bigger & elegant */
    .about-section1 p {
        font-size: 1.25rem;
        line-height: 1.9;
        color: #333;
        margin-bottom: 20px;
    }

    /* Muted mission text */
    .about-section1 .muted {
        font-size: 1.15rem;
        color: #555;
        font-style: italic;
    }
.icon-wrapper i {
    font-size: 3.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--glow-color);
    animation: pulseGlow 2.5s infinite alternate;
}

/* Dark mode styles */
.dark .about-section1 {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    color: #f5f5f5;
}

    .dark .about-section1 h1 {
        color: #f0ebeb;
    }

    .dark .about-section1 p {
        color: #e8e8e8;
    }

    .dark .about-section1 .muted {
        color: #b0b0b0;
    }

.stats {
    display: flex;
    flex-direction: column; /* stack items vertically */
    gap: 1.5rem;
    align-items: center; /* center each item */
    margin: 40px 0;
    margin-top: 100px;
}


        .stats > div {
            background: rgba(235, 251, 252, 0.8); /* soft light blue tint */
            padding: 20px 28px;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            cursor: default;
            min-width: 120px;
        }

        /* Hover effect */
            .stats > div:hover {
                transform: translateY(-5px);
                box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
            }

        /* Strong numbers */
        .stats > div strong {
            display: block;
            font-size: 1.5rem;
            font-weight: 600;
            color: #007bff; /* primary blue */
            margin-bottom: 5px;
        }

        /* Description text */
        .stats > div span {
            display: block;
            font-size: 0.9rem;
            color: #333;
        }

/* Dark mode adjustments */
.dark .stats > div {
    background: rgba(60, 60, 60, 0.3);
}

    .dark .stats > div:hover {
        background: rgba(60, 60, 60, 0.4);
    }

    /* ✅ Text color tuned for visibility in dark mode */
    .dark .stats > div ,
    .dark .stats > div span {
        color: #e4ebed; /* brighter, clearer tone for dark backgrounds */
    }

/* ================= ABOUT RESPONSIVE ================= */

@media (max-width: 992px) {
    .two-col {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-section1 {
        margin: 40px auto;
        padding: 30px 20px;
    }

    .stats {
        margin-top: 30px;
        width: 100%;
    }

        .stats > div {
            width: 100%;
            max-width: 300px;
        }
}




/*----------service section----------------*/

#services {
    padding: 80px 0;
    background: rgba(235, 251, 252, 1); /* bright soft blue */
    border-radius: 8px;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px); /* soft frosted effect */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: scale(1);
    margin-bottom: 20px;
}

    /* Soft hover for section */
    #services:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Section heading */
    #services h2 {
        text-align: center;
        font-size: 2.2rem;
        font-weight: 700;
        color: #004c91;
        margin-bottom: 40px;
    }

/* Grid layout for service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

/* Individual service cards */
.service-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

    /* Hover effect for cards */
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Card titles */
    .service-card h3 {
        font-size: 1.3rem;
        color: #007bff;
        margin-bottom: 12px;
        text-align: left; /* aligned like project titles */
        text-justify: auto;
    }

    /* Card descriptions */
    .service-card p {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        text-align: left; /* aligned like project descriptions */
        text-justify: auto;
    }

/* ===== Dark Mode Adjustments ===== */
.dark #services {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .dark #services:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.dark .service-card {
    background: linear-gradient(90deg, rgba(28, 43, 54, 1) 0%);
    color: #f2f2f2;
}

    .dark .service-card:hover {
        background: rgba(70, 70, 70, 0.6);
    }

    .dark .service-card h3 {
        color: #f0ebeb;
        text-align: left;
        text-justify: auto;
    }

.dark #services h2 {
    color: #f0ebeb;
}

.dark .service-card p {
    color: #ddd;
    text-align: left;
    text-justify: auto;
}

/* Individual service cards */
.service-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center; /* center all content */
    transition: all 0.4s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

    /* Card titles */
    .service-card h3 {
        font-size: 1.3rem;
        color: #007bff;
        margin-bottom: 12px;
        text-align: center; /* centered */
        text-justify: auto;
    }

    /* Card descriptions */
    .service-card p {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        text-align: center; /* centered */
        text-justify: auto;
    }

/* Dark Mode */
.dark .service-card h3,
.dark .service-card p {
    text-align: center; /* ensure text is centered in dark mode */
}


/* ===== Selected project ===== */

#portfolio {
    padding: 80px 0;
    background: rgba(235, 251, 252, 1); /* bright soft blue */
    border-radius: 8px;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px); /* soft frosted effect */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: scale(1);
    margin-bottom: 20px;
}

    /* Soft hover for section */
    #portfolio:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Section heading */
    #portfolio h2 {
        text-align: center;
        font-size: 2.2rem;
        font-weight: 700;
        color: #004c91;
        margin-bottom: 40px;
    }

/* Grid layout for project cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

/* Individual project cards */
.project-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

    /* Hover effect */
    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Project titles */
    .project-card h4 {
        font-size: 1.3rem;
        color: #007bff;
        margin-bottom: 12px;
        text-align: left; /* added */
        text-justify: auto; /* added */
    }

    /* Project descriptions */
    .project-card p {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        text-align: left; /* added */
        text-justify: auto; /* added */
    }


/* Read More button */
.more-link a {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .more-link a:hover {
        background: #007bff;
        color: #fff;
    }

/* Animation for cards */
.animate-up {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Dark Mode ===== */
.dark #portfolio {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .dark #portfolio:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.dark .project-card {
    background: #2d5380;
    background: linear-gradient(90deg,rgba(28, 43, 54, 1) 0%);
    color: #f2f2f2;
}

    .dark .project-card:hover {
        background: rgba(70, 70, 70, 0.6);
    }

    .dark .project-card h4 {
        color: #f0ebeb;
        text-align: left; /* added */
        text-justify: auto; /* added */
    }

.dark #portfolio h2 {
    color: #f0ebeb;
    
}

.dark .project-card p {
    color: #ddd;
    text-align: left; /* added */
    text-justify: auto; /* added */
}


.dark .more-link a {
    border-color: #67bed9;
    color: #67bed9;
}

    .dark .more-link a:hover {
        background: #67bed9;
        color: #111;
    }

/* ===== what client says Section ===== */
#testimonials {
    padding: 80px 0;
    background: rgba(235, 251, 252, 1); /* fully bright soft blue */
    border-radius: 8px;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px); /* frosted glass effect */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* soft shadow for depth */
    transform: scale(1);
    margin-bottom: 20px;
}


    #testimonials:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Section Heading */
    #testimonials h2 {
        text-align: center;
        font-size: 2.2rem;
        font-weight: 700;
        color: #004c91;
        margin-bottom: 40px;
    }

/* Testimonials Container */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

    /* Each testimonial block */
    .testimonials blockquote {
        background: rgba(255, 255, 255, 0.7);
        border-radius: 10px;
        padding: 30px 26px;
        font-style: italic;
        line-height: 1.6;
        color: #333;
        box-shadow: 0 3px 8px rgba(0,0,0,0.05);
        position: relative;
        transition: all 0.4s ease;
    }

        /* Hover effect for testimonials */
        .testimonials blockquote:hover {
            background: rgba(173, 216, 230, 0.25);
            backdrop-filter: blur(6px);
            transform: translateY(-6px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        }

        /* Quote marks styling */
        .testimonials blockquote::before {
            content: "“";
            font-size: 3rem;
            color: #007bff;
            position: absolute;
            top: 10px;
            left: 18px;
            opacity: 0.3;
        }

    /* Footer (client name) */
    .testimonials footer {
        display: block;
        margin-top: 18px;
        font-weight: 600;
        font-style: normal;
        color: #004c91;
        text-align: right;
    }

/* ===== Dark Mode Adjustments ===== */
.dark #testimonials {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .dark #testimonials:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.dark .testimonials blockquote {
    background: #2d5380;
    background: linear-gradient(90deg,rgba(28, 43, 54, 1) 0%);
    color: #ddd;
}

    .dark .testimonials blockquote:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    .dark .testimonials blockquote::before {
        color: #67bed9;
        opacity: 0.3;
    }
.dark #testimonials h2 {
    color: #f0ebeb;
}

.dark .testimonials footer {
    color: #67bed9;
}

/*----------Technologies & Tools section----------------*/

#technologies {
    padding: 80px 0;
    background: rgba(235, 251, 252, 1); /* fully bright soft blue */
    text-align: center;
    border-radius: 12px;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px); /* frosted glass effect */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* soft shadow for depth */
}


    /* Heading and paragraph styling */
    #technologies h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: #2f73b5;
    }

    #technologies p.muted {
        font-size: 1rem;
        color: #99a3a2;
        margin-bottom: 40px;
    }

    /* Tech grid */
    #technologies .tech-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 30px;
        justify-items: center;
    }

    /* Tech item styling */
    #technologies .tech-item {
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        transition: all 0.4s ease;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        position: relative;
    }

        /* Tech icon image */
        #technologies .tech-item img {
            width: 70px;
            height: 70px;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        /* Glass hover effect */
        #technologies .tech-item:hover {
            background: rgba(173, 216, 230, 0.25);
            backdrop-filter: blur(6px);
            transform: translateY(-6px) scale(1.1);
            box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        }

        /* Tooltip */
        #technologies .tech-item::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 130%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.85rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            z-index: 10;
        }

        /* Tooltip arrow */
        #technologies .tech-item::before {
            content: "";
            position: absolute;
            bottom: 120%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            border-width: 5px;
            border-style: solid;
            border-color: rgba(0,0,0,0.75) transparent transparent transparent;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        /* Show tooltip on hover with slide-up effect */
        #technologies .tech-item:hover::after,
        #technologies .tech-item:hover::before {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

/* Dark mode adjustments */
.dark #technologies {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .dark #technologies h2 {
        color: #f0ebeb;
    }

    .dark #technologies p.muted {
        color: #ddd;
    }

    .dark #technologies .tech-item {
        background: rgba(60, 60, 60, 0.4);
    }

        .dark #technologies .tech-item:hover {
            background: rgba(70, 70, 70, 0.6);
        }

        /* Dark mode tooltip */
        .dark #technologies .tech-item::after {
            background: rgba(255, 255, 255, 0.9);
            color: #000;
        }

        .dark #technologies .tech-item::before {
            border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
        }

/* ---------- Contact / CTA Section ---------- */
#contact.kcl-cta {
    margin-top: 80px; /* space from technologies section */
    padding: 80px 0;
    background: rgba(235, 251, 252, 1); /* fully bright soft blue */
    border-radius: 12px;
    backdrop-filter: blur(12px); /* frosted glass effect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* soft shadow for depth */
    transition: all 0.4s ease;
}


    #contact.kcl-cta:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ----- Text Column ----- */
.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #004c91;
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 1.1rem;
    color: #444;
}

/* ----- Form Column ----- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    /* Smaller and contained inputs */
    .contact-form input,
    .contact-form textarea {
        width: 95%; /* 👈 keeps inside the box */
        padding: 10px 14px; /* 👈 smaller fields */
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.7);
        margin: 0 auto; /* centers form fields */
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: #2f73b5;
            background-color: #fff;
            box-shadow: 0 0 8px rgba(47, 115, 181, 0.4);
        }

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 8px;
}

/* Buttons */
.btn {
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: #2f73b5;
    color: #fff;
    border: none;
}

    .btn-primary:hover {
        background: #1b5b99;
    }

.btn-outline {
    border: 2px solid #2f73b5;
    color: #2f73b5;
    background: transparent;
}

    .btn-outline:hover {
        background: #2f73b5;
        color: #fff;
    }

/* ----- Dark Mode ----- */
.dark #contact.kcl-cta {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .cta-text h2 {
    color: #f0ebeb;
}

.dark .cta-text p {
    color: #ddd;
}

.dark .contact-form input,
.dark .contact-form textarea {
    background-color: rgba(70, 70, 70, 0.4);
    border: 1px solid #666;
    color: #f2f2f2;
}

    .dark .contact-form input:focus,
    .dark .contact-form textarea:focus {
        border-color: #67bed9;
        background-color: rgba(80, 80, 80, 0.6);
    }

/* Responsive layout */
@media (max-width: 900px) {
    .cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-actions {
        justify-content: center;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }
}

}

/* ---------- FOOTER BASE ---------- */


.kcl-footer {
    margin-top: 80px;
    padding: 60px 0 30px 0;
    background: linear-gradient(135deg, #f6f9fc, #e9f1fb);
    color: #1a2b4c;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, color 0.3s ease;
    background-size: 200% 200%;
    animation: footerGradientShift 18s ease infinite;
    margin-top:15px;
}
.footer-about{
    padding-top:30px;
}

@keyframes footerGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 24px;
}

    /* --- Titles --- */
    .footer-grid h3 {
        color: #0b579a;
        font-size: 1.6rem;
        margin-bottom: 12px;
        font-weight: 700;
    }

    .footer-grid h4 {
        color: #203655;
        font-size: 1.1rem;
        margin-bottom: 10px;
        font-weight: 600;
    }

    /* --- Text --- */
    .footer-grid p {
        margin: 0;
        line-height: 1.6;
        color: #2b3f63;
    }

    /* --- Quick Links --- */
    .footer-grid ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-grid ul li {
            margin-bottom: 6px;
        }
            .footer-grid ul li a {
                color: #4a6b97; /* perfect lighter tone */
                text-decoration: none;
                transition: all 0.3s ease;
                font-weight: 500;
            }



                .footer-grid ul li a:hover {
                    color: #0b84c1;
                    text-shadow: 0 0 6px rgba(11, 132, 193, 0.3);
                }

    /* --- Social --- */
    .footer-grid a {
        color: #1b3a6b;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer-grid a:hover {
            color: #0b84c1;
            text-shadow: 0 0 6px rgba(11, 132, 193, 0.3);
        }

/* --- Bottom Area --- */
.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
}

    .footer-bottom a {
        color: #0b84c1;
        text-decoration: none;
        transition: 0.3s;
    }

        .footer-bottom a:hover {
            color: #076b9d;
        }

/* --- Responsive --- */
@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.footer-about a {
    color: inherit; /* matches the text color */
    text-decoration: none; /* removes underline */
    transition: color 0.3s; /* smooth hover effect */
}

    .footer-about a:hover {
        color: #007bff; /* change to your accent color on hover */
        text-decoration: underline; /* optional underline on hover */
    }


/* ---------- DARK MODE ---------- */
body.dark .kcl-footer {
    background: linear-gradient(180deg, rgba(10, 25, 50, 0.9), transparent);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    background-size: 200% 200%;
    animation: footerDarkShift 18s ease infinite;
    margin-top: 5px;
}

@keyframes footerDarkShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Headings and text */
body.dark .footer-grid h3,
body.dark .footer-grid h4,
body.dark .footer-grid span,
body.dark .footer-grid strong {
    color: #ffffff;
}

body.dark .footer-grid p {
    color: #d1cfcf;
}
/* Links */
body.dark .footer-grid ul li a,
body.dark .footer-grid a {
    color: #007bff;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

    body.dark .footer-grid ul li a:hover,
    body.dark .footer-grid a:hover {
        color: #5fc9ff;
        text-shadow: 0 0 8px rgba(95, 201, 255, 0.8);
    }

/* Bottom area */
body.dark .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

    body.dark .footer-bottom a {
        color: #ffffff;
    }

        body.dark .footer-bottom a:hover {
            color: #5fc9ff;
            text-shadow: 0 0 8px rgba(95, 201, 255, 0.6);
        }






/* Fix Footer-About Icons */
.footer-about i {
    color: #40c4ff !important; /* strong light-blue */
    margin-right: 10px !important;
}

/* Space between each item */
.footer-about p {
    margin-bottom: 10px !important;
}



/* ---------------- SOCIAL ICON FIXES ---------------- */

/* Center Follow title and icons */
.footer-social {
    text-align: center;
}

    .footer-social h4 {
        text-align: center;
        margin-bottom: 15px;
    }

.social-icons div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
   
}
/* Increase social icon size */
.social-icons i {
    font-size: 32px; /* Change this number for bigger/smaller */
    transition: transform 0.3s ease;
}

/* Optional: Slight zoom on hover */
.social-icons a:hover i {
    transform: scale(1.2);
}


/* Real icon colors */
#facebook i {
    color: #1877F2;
}

#insta i {
    color: #E1306C;
}

#telegram i {
    color: #0088cc;
}

#twitter i {
    color: #1DA1F2;
}

#youtube i {
    color: #FF0000;
}

#GitHub i {
    color: #333333;
}

#LinkedIn i {
    color: #0A66C2;
}



/*-------------partners paage-----------*/


/*------------- 🌞 Light Mode — Partners Section ----------*/

.partners-container {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(235, 251, 252, 0.8), transparent);
    border-radius: 5px;
}

.partners-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 40px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 20px;
}

.partner-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.4s ease;
    border-top: 4px solid #007bff;
    cursor: pointer;
}

    .partner-card:hover {
        transform: translateY(-10px) rotateZ(-2deg);
        box-shadow: 0 10px 25px rgba(0, 123, 255, 0.25);
    }

.partner-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.partner-card:hover .partner-icon {
    transform: rotate(10deg) scale(1.2);
    text-shadow: 0 0 15px currentColor;
}

/*------------- 🌙 Dark Mode — Partners Section ----------*/

body.dark .partners-container {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
}

body.dark .partners-title {
    color: #5cc0ef;
}

body.dark .partners-grid {
    background: rgba(255, 255, 255, 0.05);
}

body.dark .partner-card {
    background: rgba(25, 35, 50, 0.8);
    border-top: 4px solid #5cc0ef;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

    body.dark .partner-card:hover {
        transform: translateY(-10px) rotateZ(-2deg);
        box-shadow: 0 10px 30px rgba(92, 192, 239, 0.4);
    }

    body.dark .partner-card h3 {
        color: #ffffff;
    }

    body.dark .partner-card p {
        color: #b0b0b0;
    }

body.dark .partner-icon {
    opacity: 0.9;
}



/*-------------service page------------*/



/*------------- 🌞 Light Mode — Services Section ----------*/

.services-container {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(180deg, rgba(235, 251, 252, 0.8), transparent);
    border-radius: 5px;
}

.services-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6); /* slightly lighter grid background */
    border-radius: 16px;
    
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.4s ease;
    border-top: 4px solid #007bff;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-10px) rotateZ(-2deg);
        box-shadow: 0 10px 25px rgba(0, 123, 255, 0.25);
    }

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.2);
    text-shadow: 0 0 15px currentColor;
}

.icon-blue {
    color: #007bff;
}

.icon-green {
    color: #28a745;
}

.icon-orange {
    color: #ff8800;
}

.icon-purple {
    color: #6f42c1;
}

.service-card h3 {
    margin: 10px 0;
    color: #333;
    text-align: left; /* changed from justify */
    text-justify: auto; /* changed from inter-word */
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    text-align: left; /* changed from justify */
    text-justify: auto; /* changed from inter-word */
}


/*------------- 🌙 Dark Mode — Services Section ----------*/

body.dark .services-container {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    border-radius: 5px;
}

body.dark .services-title {
    color: #5cc0ef; /* light blue accent */
}

body.dark .services-grid {
    background: rgba(255, 255, 255, 0.05); /* slightly brighter grid container */
}

body.dark .service-card {
    background: rgba(25, 35, 50, 0.8);
    border-top: 4px solid #5cc0ef;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

    body.dark .service-card:hover {
        transform: translateY(-10px) rotateZ(-2deg);
        box-shadow: 0 10px 30px rgba(92, 192, 239, 0.4);
    }

    body.dark .service-card h3 {
        color: #ffffff;
        text-align: left; /* added */
        text-justify: auto; /* added */
    }

    body.dark .service-card p {
        color: #b0b0b0;
        text-align: left; /* added */
        text-justify: auto; /* added */
    }


body.dark .service-icon {
    opacity: 0.9;
}

/*------------- Shared Animations ----------*/
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}
}


/*----------partner section----------------*/

#partners {
    padding: 80px 0;
    background: rgba(235, 251, 252, 1); /* soft bright blue */
    border-radius: 8px;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: scale(1);
    margin-bottom: 20px;
    text-align: center; /* center all text inside */
}

    /* Soft hover for section */
    #partners:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Section heading */
    #partners h2 {
        font-size: 2.2rem;
        font-weight: 700;
        color: #004c91;
        margin-bottom: 40px;
    }

/* Grid layout */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center; /* center cards horizontally */
}

/* Individual cards */
.partner-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 300px; /* consistent card size */
}

    .partner-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    /* Card content */
    .partner-card h3 {
        font-size: 1.3rem;
        color: #007bff;
        margin-bottom: 12px;
    }

    .partner-card p {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
    }

/* ===== Dark Mode Adjustments ===== */
.dark #partners {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .dark #partners:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.dark .partner-card {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
    color: #f2f2f2;
}

    .dark .partner-card:hover {
        background: rgba(70, 70, 70, 0.6);
    }

    .dark .partner-card h3 {
        color: #f0ebeb;
    }

.dark #partners h2 {
    color: #f0ebeb;
}

.dark .partner-card p {
    color: #ddd;
}



/*----------product page----------*/

/*------------- 🌞 Light Mode — Products Section ----------*/

.products-container {
    text-align: justify;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(235, 251, 252, 0.8), transparent);
    border-radius: 5px;
}

.products-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
   
}

.product-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.4s ease;
    border-top: 4px solid #007bff;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-10px) rotateZ(-2deg);
        box-shadow: 0 10px 25px rgba(0, 123, 255, 0.25);
    }

    .product-card h3,
    .product-card p {
        margin: 10px 0;
        color: #333;
        text-align: left; /* change from justify */
        text-justify: auto; /* optional, default behavior */
    }


/*------------- 🌙 Dark Mode — Products Section ----------*/

body.dark .products-container {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
}

body.dark .products-title {
    color: #5cc0ef;
}

body.dark .products-grid {
    background: rgba(255, 255, 255, 0.05);
}

body.dark .product-card {
    background: rgba(25, 35, 50, 0.8);
    border-top: 4px solid #5cc0ef;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

    body.dark .product-card:hover {
        transform: translateY(-10px) rotateZ(-2deg);
        box-shadow: 0 10px 30px rgba(92, 192, 239, 0.4);
    }

    body.dark .product-card h3 {
        color: #ffffff;
    }

    body.dark .product-card p {
        color: #b0b0b0;
    }

body.dark .service-icon {
    opacity: 0.9;
}

/*------------- Shared Animations ----------*/
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

.icon-blue {
    color: #007bff;
}

.icon-green {
    color: #28a745;
}

.icon-orange {
    color: #ff8800;
}

.icon-purple {
    color: #6f42c1;
}



/* ============================== */
/*        About Page Styling      */
/*        ✨ Deluxe Edition ✨     */
/* ============================== */

.about-section {
    padding: 80px 0;
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s ease;
}

/* 🎨 تم لایت و دارک */
body.kcl-light {
    --bg-color: linear-gradient(135deg, #fdfbfb, #ebedee);
    --text-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --accent-color: #00bcd4;
    --glow-color: rgba(0, 188, 212, 0.5);
}

body.dark {
    --bg-color: linear-gradient(135deg, #0b0f17, #161b25);
    --text-color: #e6f1ff;
    --card-bg: rgba(25, 30, 40, 0.75);
    --card-shadow: rgba(0, 255, 255, 0.1);
    --accent-color: #40c4ff;
    --glow-color: rgba(64, 196, 255, 0.5);
}

/* ✨ Hero Section */
.about-hero-card {
    margin-bottom: 60px;
    padding: 70px 25px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px var(--card-shadow);
    border-radius: 25px;
    max-width: 850px;
    margin-inline: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

    .about-hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 20%, var(--accent-color)10%, transparent 60%);
        opacity: 0.12;
        transition: opacity 0.6s ease;
    }

    .about-hero-card:hover::before {
        opacity: 0.25;
    }

    .about-hero-card .icon-wrapper i {
        font-size: 3.5rem;
        color: var(--accent-color);
        text-shadow: 0 0 20px var(--glow-color);
        animation: pulseGlow 2.5s infinite alternate;
    }

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 10px var(--glow-color);
    }

    to {
        text-shadow: 0 0 25px var(--glow-color);
    }
}

.about-hero-card h1 {
    font-size: 2.6rem;
    margin: 25px 0 12px;
    letter-spacing: 1.5px;
}

.about-hero-card p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* 🧭 بخش‌ها */
.about-section-block {
    margin-top: 80px;
}

    .about-section-block h3 {
        font-size: 2rem;
        color: var(--accent-color);
        font-weight: 700;
        margin-bottom: 30px;
        position: relative;
    }

        .about-section-block h3::after {
            content: "";
            display: block;
            width: 90px;
            height: 3px;
            background: var(--accent-color);
            margin: 12px auto 0;
            border-radius: 5px;
            box-shadow: 0 0 10px var(--glow-color);
        }

/* 💎 کارت‌ها */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.feature-card {
    background: var(--card-bg);
    color: var(--text-color);
    width: 280px;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
}

    .feature-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent, var(--accent-color)10%, transparent 90%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 0;
    }

    .feature-card:hover::before {
        opacity: 0.25;
    }

    .feature-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 15px 45px var(--glow-color);
    }

    .feature-card .card-icon {
        font-size: 2.6rem;
        color: var(--accent-color);
        margin-bottom: 15px;
        z-index: 1;
        position: relative;
        transition: transform 0.4s ease;
    }

    .feature-card:hover .card-icon {
        transform: scale(1.25) rotate(8deg);
    }

/* 🌟 ماموریت */
.about-mission {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-color));
    padding: 60px;
    border-radius: 25px;
    margin-top: 90px;
    box-shadow: 0 10px 35px var(--card-shadow);
    backdrop-filter: blur(10px);
}

    .about-mission h4 {
        font-size: 1.9rem;
        color: var(--accent-color);
        margin-bottom: 25px;
        text-shadow: 0 0 10px var(--glow-color);
    }

    .about-mission p {
        font-size: 1.1rem;
        line-height: 1.8;
        opacity: 0.92;
    }

/* 👥 تیم */
.team-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: var(--card-bg);
    color: var(--text-color);
    width: 230px;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--card-shadow);
    transition: all 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

    .team-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 40px var(--glow-color);
    }

.team-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--glow-color);
}

/* 🌐 آیکون‌های شبکه اجتماعی */
.social-icons {
    margin-top: 12px;
}

    .social-icons a {
        color: var(--accent-color);
        margin: 0 8px;
        font-size: 1.4rem;
        transition: all 0.35s ease;
    }

        .social-icons a:hover {
            color: #00e5ff;
            transform: scale(1.3) rotate(12deg);
            text-shadow: 0 0 10px var(--glow-color);
        }

/* 📱 واکنش‌گرایی */
@media (max-width: 768px) {
    .feature-card, .team-card {
        width: 90%;
    }

    .about-hero-card {
        padding: 50px 20px;
    }
}


/* ============================== */
/*       Contact Page Styling     */
/*       ⚡ Neon Glassmorphism ⚡  */
/* ============================== */

:root {
    --cb-accent-color: #40c4ff;
    --cb-accent-glow: rgba(64,196,255,0.6);
}

/* بخش اصلی */
.cb-contact-section {
    background: linear-gradient(135deg, #eaf9ff, #f3f7fb);
    padding: 80px 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

    /* افکت نور پس زمینه */
    .cb-contact-section::before,
    .cb-contact-section::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(100px);
        z-index: 0;
    }

    .cb-contact-section::before {
        width: 600px;
        height: 600px;
        top: -150px;
        left: -150px;
        background: radial-gradient(circle, var(--cb-accent-color) 25%, transparent 70%);
    }

    .cb-contact-section::after {
        width: 500px;
        height: 500px;
        bottom: -120px;
        right: -120px;
        background: radial-gradient(circle, var(--cb-accent-color) 25%, transparent 70%);
    }

/* کارت معرفی */
.cb-intro-card {
    max-width: 1000px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #1b1b1b;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    padding: 60px 50px;
    text-align: center;
    transition: all 0.6s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

    .cb-intro-card h1 {
        font-size: 2.6rem;
        font-weight: 800;
        color: var(--cb-accent-color);
        margin-bottom: 20px;
        text-shadow: 0 0 15px var(--cb-accent-glow);
    }

    .cb-intro-card p {
        font-size: 1.2rem;
        color: #333;
        line-height: 1.9;
    }

body.kcl-dark .cb-intro-card {
    background: rgba(30,35,50,0.7); /* شفاف اما کمی تیره‌تر */
    border: 1px solid rgba(64,196,255,0.25);
    color: #eaf4ff;
}

body.kcl-dark .cb-intro-card {
    background: rgba(30,35,50,0.7); /* شفاف اما کمی تیره‌تر */
    border: 1px solid rgba(64,196,255,0.25);
    color: #eaf4ff;
}


/* فرم و کارت اطلاعات */
.cb-contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

.cb-contact-card,
.cb-info-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 30px;
    max-width: 480px;
    flex: 1;
    text-align: center;
    transition: all 0.45s ease;
    overflow: hidden;
    position: relative;
    
}
.footer-about {
    display: inline-block; 
    text-align: left; 
    margin: 0 auto; 
}

    .cb-contact-card:hover,
    .cb-info-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 50px var(--cb-accent-glow);
    }

    .cb-contact-card .form-control {
        width: 90%;
        margin: 15px auto;
        padding: 14px 18px;
        border-radius: 12px;
        border: 1px solid #b0e0ff;
        background: rgba(249, 252, 255, 0.9);
        color: #222;
        transition: all 0.3s ease;
        backdrop-filter: blur(6px);
    }

        .cb-contact-card .form-control:focus {
            outline: none;
            border-color: var(--cb-accent-color);
            box-shadow: 0 0 12px var(--cb-accent-glow);
        }

    .cb-contact-card .submit-btn {
        background: linear-gradient(135deg, #5cc0ef, var(--cb-accent-color));
        color: #fff;
        padding: 14px 50px;
        border-radius: 25px;
        border: none;
        cursor: pointer;
        font-weight: 600;
        font-size: 1.05rem;
        transition: all 0.4s ease;
        box-shadow: 0 0 20px var(--cb-accent-glow);
    }

        .cb-contact-card .submit-btn:hover {
            background: linear-gradient(135deg, var(--cb-accent-color), #1f81b5);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 0 35px var(--cb-accent-glow);
        }

    /* کارت اطلاعات */
    .cb-info-card .icon-wrapper {
        font-size: 2.7rem;
        color: var(--cb-accent-color);
        margin-bottom: 20px;
        text-shadow: 0 0 20px var(--cb-accent-glow);
        animation: cb-neonPulse 2.5s infinite alternate;
    }

@keyframes cb-neonPulse {
    from {
        text-shadow: 0 0 10px rgba(64,196,255,0.4);
    }

    to {
        text-shadow: 0 0 25px rgba(64,196,255,0.7);
    }
}

.cb-info-card p {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

    .cb-info-card p i {
        margin-right: 8px;
        color: var(--cb-accent-color);
    }

/* دارک مود */
body.kcl-dark .cb-contact-section {
    background: linear-gradient(135deg, #0b1220, #181c27);
    color: #e6eef6;
}

body.kcl-dark .cb-intro-card,
body.kcl-dark .cb-contact-card,
body.kcl-dark .cb-info-card {
    background: rgba(25,30,40,0.6);
    border: 1px solid rgba(64,196,255,0.25);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 50px rgba(64,196,255,0.08);
    color: #eaf4ff;
}

    body.kcl-dark .cb-intro-card h1 {
        color: var(--cb-accent-color);
        text-shadow: 0 0 15px var(--cb-accent-glow);
    }

body.kcl-dark .form-control {
    background: rgba(35,45,65,0.6);
    border: 1px solid rgba(64,196,255,0.4);
    color: #eaf4ff;
}

body.kcl-dark .submit-btn {
    background: linear-gradient(135deg, var(--cb-accent-color), #2196f3);
    box-shadow: 0 0 25px var(--cb-accent-glow);
}

    body.kcl-dark .submit-btn:hover {
        background: linear-gradient(135deg, #2196f3, #1565c0);
        box-shadow: 0 0 40px var(--cb-accent-glow);
    }

/* واکنشگرایی */
@media (max-width: 768px) {
    .cb-contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .cb-intro-card {
        padding: 45px 25px;
    }
}

/* ================================================== */
/*         ✅ FIX: Dark Mode Full Compatibility       */
/* ================================================== */

/* پس‌زمینه بخش اصلی در دارک */
body.dark .cb-contact-section {
    background: linear-gradient(135deg, #0b121f, #141925);
    color: #e9f2ff;
}

/* کارت معرفی (Hero) */
body.dark .cb-intro-card {
    background: rgba(20, 26, 40, 0.75) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(64,196,255,0.35) !important;
    box-shadow: 0 10px 45px rgba(64,196,255,0.20) !important;
    color: #e9f2ff !important;
    position: relative;
    z-index: 5 !important;
}

    /* عنوان داخل کارت */
    body.dark .cb-intro-card h1 {
        color: #40c4ff !important; /* آبی نیونی */
        text-shadow: 0 0 20px rgba(64,196,255,0.8) !important;
        font-weight: 800;
        z-index: 6;
        position: relative;
    }

    /* متن داخل کارت */
    body.dark .cb-intro-card p {
        color: #d9e9ff !important;
        opacity: 1 !important;
        text-shadow: 0 0 10px rgba(64,196,255,0.35);
        position: relative;
        z-index: 6;
    }

/* فرم */
body.dark .cb-contact-card {
    background: rgba(20, 26, 40, 0.7) !important;
    border: 1px solid rgba(64,196,255,0.25) !important;
    backdrop-filter: blur(20px);
    color: #eaf4ff;
}

/* فیلدهای فرم */
body.dark .form-control {
    background: rgba(35, 45, 65, 0.7) !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(64,196,255,0.4) !important;
}

    body.dark .form-control::placeholder {
        color: #a7c8ff !important;
    }

/* دکمه ارسال */
body.dark .submit-btn {
    background: linear-gradient(135deg, #40c4ff, #2196f3) !important;
    box-shadow: 0 0 22px rgba(64,196,255,0.55) !important;
    color: white;
}

    body.dark .submit-btn:hover {
        background: linear-gradient(135deg, #2196f3, #1565c0) !important;
        box-shadow: 0 0 35px rgba(64,196,255,0.7) !important;
    }

/* کارت اطلاعات */
body.dark .cb-info-card {
    background: rgba(20, 26, 40, 0.7) !important;
    border: 1px solid rgba(64,196,255,0.25) !important;
    backdrop-filter: blur(20px);
    color: #eaf4ff;
}

    /* آیکون‌های کارت اطلاعات */
    body.dark .cb-info-card .icon-wrapper {
        color: #40c4ff !important;
        text-shadow: 0 0 20px rgba(64,196,255,0.8) !important;
    }






/* Topbar fixed and login/register button styles */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.topbar .nav {
    margin-left: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.controls {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login {
    padding: 8px 12px;
    border-radius: 6px;
    background: #0d6efd;
    color: white;
    border: none;
    cursor: pointer;
}

/* Forms */
.form-group { margin-bottom: 10px; }
.form-control { width: 100%; padding: 8px; border-radius: 4px; border:1px solid #ccc; }
.btn { padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.alert { padding: 8px; border-radius: 6px; }
.page { padding-top: 80px; } /* space for fixed topbar */





/* ---------------- SOCIAL ICON FIXES ---------------- */

/* Center Follow title and icons */
.footer-social {
    text-align: center;
    padding-left:20px;
}

    .footer-social h4 {
        text-align: center;
        margin-bottom: 15px;
    }

.social-icons div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
/* Increase social icon size */
.social-icons i {
    font-size: 32px; /* Change this number for bigger/smaller */
    transition: transform 0.3s ease;
}

/* Optional: Slight zoom on hover */
.social-icons a:hover i {
    transform: scale(1.2);
}


/* Real icon colors */
#facebook i {
    color: #1877F2;
}

#insta i {
    color: #E1306C;
}

#telegram i {
    color: #0088cc;
}

#twitter i {
    color: #1DA1F2;
}

#youtube i {
    color: #FF0000;
}

#GitHub i {
    color: #333333;
}

#LinkedIn i {
    color: #0A66C2;
}




    /*-----------------images------------*/

/*--partners image--*/

.partners-container {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.partners-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* Individual partner card */
.partner-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .partner-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Circular partner image */
.partner-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #007bff; /* optional colored border */
}

.partner-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.partner-card p {
    font-size: 0.95rem;
    color: #000;
}

/* Optional animation */
.animate-up {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* partner Section Read More Button */
.btn-read-more {
    background-color: #007bff; /* Blue color */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 30px; /* Rounded corners */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .btn-read-more:hover {
        background-color: #0056b3; /* Darker blue on hover */
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

/* Add spacing below team cards wrapper */
.team-cards-wrapper {
    margin-bottom: 40px; /* Adjust space between cards and button */
}

/*---products image---*/

.products-container {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.products-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* Individual product card */
.product-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Square image wrapper with bigger size and zoom */
.product-img-wrapper {
    width: 220px; /* increased size */
    height: 250px; /* increased size */
    margin: 0 auto 15px auto;
    overflow: hidden;
    border-radius: 8px; /* square with slightly rounded corners */
    border: 2px solid #007bff;
    background-color: #fff; /* optional contrast background */
}

    .product-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.1); /* slightly zoomed in */
        transition: transform 0.3s ease;
    }

        .product-img-wrapper img:hover {
            transform: scale(1.15); /* zoom on hover */
        }

.product-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-card p {
    font-size: 0.95rem;
    color: #000;
}

/* product Section Read More Button */
.btn-read-more {
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .btn-read-more:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

/* Add spacing below team cards wrapper */
.team-cards-wrapper {
    margin-bottom: 40px;
}

/*----------------------------------------------------
 🌞 LIGHT MODE — TEAM SECTION  
 Styled similar to partner.css
------------------------------------------------------*/

.team-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(235, 251, 252, 0.8), transparent);
    border-radius: 5px;
}

    .team-section > h3 {
        font-size: 2.2rem;
        font-weight: 600;
        color: #007bff;
        margin-bottom: 40px;
    }

    /* Team Grid */
    .team-section .team-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        justify-items: center;
        gap: 25px;
        max-width: 1100px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.6);
        padding: 25px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
    }

    /* Team Card */
    .team-section .team-card {
        background: white;
        padding: 25px 20px;
        border-radius: 16px;
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
        border-top: 4px solid #007bff;
        transition: 0.4s ease;
        cursor: pointer;
        overflow: hidden;
        text-align: center;
    }

        .team-section .team-card:hover {
            transform: translateY(-5px) rotateZ(-1deg);
            box-shadow: 0 10px 25px rgba(0, 123, 255, 0.25);
        }

    /* Photo Wrapper */
    .team-section .team-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto 12px;
        overflow: hidden;
        border-radius: 50%;
        /* UPDATED — dark blue border in LIGHT MODE */
        border: 3px solid #0d2a5a;
        transition: transform 0.4s ease;
    }

        .team-section .team-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .team-section .team-card:hover .team-photo {
        transform: scale(1.05) rotate(2deg);
    }

    /* Name + Role */
    .team-section h5 {
        margin: 8px 0 3px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .team-section p {
        margin: 0;
        font-size: 0.9rem;
        color: #555;
    }

    /* Social Icons */
    .team-section .social-icons {
        margin-top: 8px;
        display: flex;
        justify-content: center;
        gap: 4px;
    }

        .team-section .social-icons a {
            color: #555;
            transition: 0.3s ease;
        }

            .team-section .social-icons a i {
                font-size: 1.3rem;
                transition: 0.3s ease;
            }

            .team-section .social-icons a:hover i {
                color: #007bff;
                transform: scale(1.1);
            }

/*----------------------------------------------------
 🌙 DARK MODE — TEAM SECTION  
------------------------------------------------------*/

body.dark .team-section {
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.6), transparent);
}

    body.dark .team-section > h3 {
        color: #5cc0ef;
    }

body.dark .team-cards-wrapper {
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    justify-items: center;
}

body.dark .team-card {
    background: rgba(25, 35, 50, 0.85);
    border-top: 4px solid #5cc0ef;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    overflow: hidden;
    text-align: center;
}

    body.dark .team-card:hover {
        transform: translateY(-5px) rotateZ(-1deg);
        box-shadow: 0 10px 30px rgba(92, 192, 239, 0.4);
    }

/* UPDATED — light blue border in DARK MODE */
body.dark .team-photo {
    border-color: #5cc0ef;
}

body.dark .team-card:hover .team-photo {
    transform: scale(1.05) rotate(2deg);
}

body.dark .team-section h5 {
    color: white;
}

body.dark .team-section p {
    color: #b0b0b0;
}

/* Social Icons */
body.dark .team-section .social-icons {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

    body.dark .team-section .social-icons a {
        color: #cfcfcf;
        transition: 0.3s ease;
    }

        body.dark .team-section .social-icons a i {
            font-size: 1.3rem;
            transition: 0.3s ease;
        }

        body.dark .team-section .social-icons a:hover i {
            color: #5cc0ef;
            transform: scale(1.1);
        }




        /*==========Service==========*/

.services-container {
    padding: 0.5rem; /* slightly bigger padding */
    max-width: 1500px !important; /* widened container */
    margin: auto;
    text-align: center;
}

.services-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* wider cards */
    gap: 2rem;
}

/* Individual service card */
.service-card {
    background: #fff;
    padding: 1.7rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Service image — bigger size */
.service-img {
    width: 150px; /* increased from 120px */
    height: 150px; /* increased from 120px */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid #007bff;
}

/* Text styles */
.service-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 1rem;
    color: #000;
}

/* Animation */
.animate-up {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* service Section Read More Button */
.btn-read-more {
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .btn-read-more:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

.team-cards-wrapper {
    margin-bottom: 40px;
}



/*=======image slider========*/

.kcl-slider {
    margin-bottom: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* WRAPPER */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: auto; /* allow image to define height */
}

/* SLIDE ITEM */
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    /* ACTIVE SLIDE */
    .slider-item.active {
        opacity: 1;
        position: relative; /* important: lets height expand */
        z-index: 1;
    }

    /* IMAGES – FULLY RESPONSIVE */
    .slider-item img {
        width: 100%;
        height: auto; /* keeps entire image visible on mobile */
        object-fit: contain; /* IMPORTANT: shows full content */
        border-radius: 12px;
        display: block;
    }

/* MOBILE FIX – ENSURE NO CROPPING */
.kcl-slider,
.slider-wrapper {
    height: auto !important;
}

/* OPTIONAL: If images look too small on large screens, add max-height */
@media (min-width: 992px) {
    .slider-item img {
        max-height: 550px; /* Keep desktop height similar to your original */
        object-fit: contain;
    }
}


