:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(92, 45, 145, 0.08);
    --bg-card-hover: rgba(92, 45, 145, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #b8b4c0;
    --primary-color: #5C2D91;
    --accent-color: #8B5CF6;
    --accent-light: #A78BFA;
    --gradient-main: linear-gradient(135deg, #5C2D91 0%, #8B5CF6 100%);
    --gradient-text: linear-gradient(135deg, #A78BFA, #C4B5FD);
    --font-main: 'Poppins', sans-serif;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0a16 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(92, 45, 145, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.btn-nav {
    background: var(--gradient-main);
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-md);
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(92, 45, 145, 0.3);
    transition: all 0.3s ease;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    box-shadow: 0 6px 25px rgba(92, 45, 145, 0.5);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== Hero Section ==================== */
.hero {
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(92, 45, 145, 0.2) 0%, transparent 60%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.3) rotate(10deg);
        opacity: 0.7;
    }
}

.hero-badge {
    background: rgba(92, 45, 145, 0.15);
    color: var(--accent-light);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 15px rgba(92, 45, 145, 0.2);
    display: inline-block;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: var(--spacing-lg) 0;
    line-height: 1.15;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 8px 25px rgba(92, 45, 145, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px rgba(92, 45, 145, 0.6);
}

.btn-outline {
    border: 2px solid rgba(139, 92, 246, 0.4);
    background: rgba(92, 45, 145, 0.1);
    color: var(--accent-light);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    background: rgba(92, 45, 145, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== Sections General ==================== */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    color: var(--accent-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ==================== About & Services Grid ==================== */
.about-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.about-card,
.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(92, 45, 145, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0.3);
}

.service-card h3,
.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p,
.about-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== Products Section ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(92, 45, 145, 0.4);
    transform: translateY(-5px);
}

.product-content {
    padding: 2.5rem;
}

.product-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 80px;
    line-height: 1.7;
}

.product-apps {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.app-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.app-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.app-item strong {
    color: var(--accent-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.app-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.btn-link {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-link:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

/* ==================== Clients Section ==================== */
.clients-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.client-item {
    text-align: center;
    background: var(--bg-card);
    padding: 2.5rem 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.client-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(92, 45, 145, 0.3);
}

.client-name {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.client-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.author {
    font-weight: 600;
    color: var(--accent-light);
    font-size: 0.95rem;
}

/* ==================== Portfolio ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    height: 350px;
    background: linear-gradient(135deg, #1a1625, #0f0a16);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(92, 45, 145, 0.4);
}

.portfolio-info {
    background: linear-gradient(to top, rgba(10, 10, 15, 0.98), transparent);
    width: 100%;
    padding: 2.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Center wrapper */
.card-icon {
    position: absolute;
    inset: 0;
    /* top, right, bottom, left = 0 */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Base image styles */
.card-img {
    height: 110px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-img1 {
    height: 180px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Normal image visible */
.normal-img {
    opacity: 1;

    position: absolute;

    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Hover image hidden at start */
.hover-img {
    opacity: 0;
    transform: scale(1.1);
}



.tech-badge {
    background: var(--gradient-main);
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ==================== Contact ==================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-md);
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2.5rem;
}

.detail-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== Footer ==================== */
footer {
    background: #050508;
    padding: 3rem 0;
    margin-top: 120px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2.5rem;
    }

    .about-grid,
    .services-grid,
    .products-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .clients-grid {
        gap: 1.5rem;
    }

    .client-item {
        padding: 2rem 2.5rem;
    }
}

/* Client Logo Styling */
.client-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.client-item:hover .client-logo {
    transform: scale(1.05);
}


/* Product Logo Styling */
.product-logo {
    height: 10vh;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.product-card:hover .product-logo {
    transform: scale(1.1) rotate(5deg);
}