:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #ffffff;
    --border-color: #dee2e6;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #495057;
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-download-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-download-nav:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

/* Hero Section with Carousel */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 40% 55%;
    gap: 5%;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Search Box in Hero */
.hero-search {
    background: white;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 100%;
}

.hero-search form {
    display: flex;
    width: 100%;
}

.hero-search input {
    border: none;
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.hero-search button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: var(--primary-hover);
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: #fff;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    text-align: left;
}

.slide-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content h3 a {
    color: white;
}

.slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
    max-width: 80%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    position: relative;
    padding-left: 16px;
    color: var(--dark-text);
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    background: var(--primary-color);
    border-radius: 4px;
}

.more-btn {
    color: var(--secondary-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.more-btn:hover {
    color: var(--primary-color);
}

/* Feature Grid (Cards) */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: transparent;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-body {
    flex: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a {
    color: var(--dark-text);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; /* 2 lines aprox */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

.rating {
    color: #ffc107;
    font-size: 12px;
}

.btn-sm {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

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

/* Feature List (Why Us) */
.why-us {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    width: 64px;
    height: 64px;
    line-height: 64px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-box h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 14px;
    color: #666;
}

/* Footer (Updated) */
footer {
    background-color: #212529;
    color: #f8f9fa;
    padding-top: 70px;
    font-size: 14px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col p {
    color: #adb5bd;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #adb5bd;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-col ul li a::before {
    content: '\f105'; /* FontAwesome chevron right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.2s;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid #343a40;
    padding: 25px 0;
    text-align: center;
    color: #6c757d;
    background: #1a1e21;
}

.copyright p {
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        gap: 30px;
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .carousel-container {
        aspect-ratio: 16/9;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
