/* 
    CORE TECH SOFTWARE SOLUTION - Itfirm Design Match
*/

:root {
    --primary: #5f3afc;
    --primary-alt: #8b5cf6;
    --gradient: linear-gradient(90deg, #5f3afc 0%, #8b5cf6 100%);
    --gradient-v: linear-gradient(180deg, #5f3afc 0%, #8b5cf6 100%);
    --secondary: #0A192F;
    --white: #ffffff;
    --bg-light: #f4f5f8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-gradient {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.text-white {
    color: var(--white);
}

.badge {
    background: var(--white);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hero .badge {
    color: var(--primary);
    font-weight: 700;
}

/* Header */
/* Top bar */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.8rem;
    color: #666;
}

header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: 90px;
    display: flex;
    width: 100%;
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.logo-area {
    background: linear-gradient(90deg, #7b2cbf, #5f3afc);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 80px 0 40px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    min-width: 380px;
}

.logo {
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text span {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.logo-text i {
    font-size: 1.5rem;
    opacity: 0.8;
    color: #00d2ff;
}

.sub-logo {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    padding: 0 40px 0 20px;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: 20px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a i {
    font-size: 0.7rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-btns a {
    color: #1e293b;
    font-size: 1.1rem;
}

.nav-btns .lang-selector {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btns .lang-selector i {
    font-size: 1.1rem;
    color: #64748b;
}

.nav-btns .lang-selector i.fa-chevron-down {
    font-size: 0.7rem;
}

.nav-btns .btn-primary {
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(95, 58, 252, 0.3);
    color: white;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: #5f3afc;
    padding: 150px 0 200px;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: url('../images/hero-girl.png') no-repeat right center;
    background-size: cover;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 35px;
}

/* Overlapping Tech Cards */
.tech-cards-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.tech-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tech-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    width: 190px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-10px);
}

.tech-card i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.tech-card h4 {
    font-size: 0.95rem;
    color: var(--secondary);
}

/* Client Logos */
.clients-bar {
    background: transparent;
    padding: 40px 0;
    text-align: center;
}

.clients-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.clients-inner span {
    font-weight: 700;
    color: var(--secondary);
}

.clients-inner img {
    height: 30px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.clients-inner img:hover {
    filter: none;
    opacity: 1;
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
}

/* About Section */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
}

.play-btn {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 0 10px rgba(95, 58, 252, 0.2);
    border: none;
    cursor: pointer;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature i {
    font-size: 2rem;
    color: #8b5cf6;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Awesome Services Cards */
.services-section {
    background: linear-gradient(135deg, rgba(244, 245, 248, 1) 0%, rgba(220, 225, 240, 0.5) 100%);
    position: relative;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-box {
    background: white;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-top: 30px;
    /* space for icon bump */
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon-bump {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 10px 20px rgba(95, 58, 252, 0.3);
}

.service-icon-bump i {
    transform: rotate(-45deg);
}

.service-box h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Rest of the generic styles */
.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

footer {
    background: #0A192F;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        height: auto;
    }

    .logo-area {
        width: 100%;
        clip-path: none;
        justify-content: center;
        padding: 20px;
    }

    .nav-area {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .hero {
        background: var(--primary);
        padding: 100px 0;
    }

    .tech-cards {
        flex-wrap: wrap;
    }

    .service-grid,
    .product-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .about-flex {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .service-grid,
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .clients-inner {
        flex-direction: column;
    }
}

/* Chatbot Styles */
.chat-msg {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

/* Dark Theme */
body.dark-theme {
    --white: #0f172a;
    --bg-light: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --secondary: #f8fafc;
}

body.dark-theme header {
    background: #0f172a;
}

body.dark-theme .logo-area {
    background: linear-gradient(90deg, #1e1b4b, #312e81);
}

body.dark-theme .glass-card,
body.dark-theme .service-box,
body.dark-theme .tech-card,
body.dark-theme .contact-info .glass-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

body.dark-theme .top-bar {
    background: #020617;
    border-color: #1e293b;
}

body.dark-theme .top-bar .container {
    color: #cbd5e1;
}

body.dark-theme .nav-links a {
    color: #f1f5f9;
}

body.dark-theme .nav-btns #themeToggle {
    color: #f1f5f9;
}

body.dark-theme #chatWindow {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-theme #chatBody {
    background: #0f172a;
}

body.dark-theme .bot-msg {
    background: #334155;
    color: #f1f5f9;
}

body.dark-theme #chatInput {
    background: #1e293b;
}