:root {
    --primary: #004080;
    --dark: #001f3f;
    --light: #ffffff;
    --bg: #f4f6f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: #333;
    scroll-behavior: smooth;
    cursor: default;
    user-select: none;
        /* Optional: disable text selection */
}

header {
    background-color: var(--dark);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

header.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {
    font-size: 24px;
    color: #87cefa;
    font-weight: bold;
    animation: logoBounce 2s infinite;
    
}
/* Define the bounce animation */
@keyframes logoBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}
.cnt {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    position: relative;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #87cefa;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #87cefa;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    display: none;
    flex-direction: column;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    /* Ensure dropdown is above other content */
}

.dropdown a {
    padding: 10px 15px;
    color: var(--light);
    text-decoration: none;
    white-space: nowrap;
}

.dropdown a:hover {
    background: #003060;
}

nav ul li:hover .dropdown {
    display: flex;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar-container {
        padding: 15px 20px;
    }

    nav ul.nav-links {
        display: none;
        /* Hide regular nav links */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        /* Adjust based on header height */
        left: 0;
        background-color: var(--dark);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    nav ul.nav-links.active {
        display: flex;
        /* Show when active */
    }

    nav ul.nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    /* Style for parent links in mobile menu */
    nav ul.nav-links li a {
        padding: 10px 0;
        display: block;
        /* Add hover/active effect for parent links */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    nav ul.nav-links li a:hover,
    nav ul.nav-links li.dropdown-active>a {
        /* Apply hover style when dropdown is active */
        background-color: #003060;
        color: #87cefa;
    }

    nav ul.nav-links li a::after {
        display: none;
        /* Hide underline for mobile */
    }

    .dropdown {
        position: static;
        /* Allow dropdown to flow naturally in mobile menu */
        background: none;
        box-shadow: none;
        padding: 0;
        margin-top: 5px;
        display: none;
        /* Hide by default */
        overflow: hidden;
        /* Hide overflow during transition */
        max-height: 0;
        /* For collapse animation */
        transition: max-height 0.3s ease-out;
        /* Smooth collapse/expand */
    }

    nav ul.nav-links li.dropdown-active .dropdown {
        display: flex;
        /* Show dropdown when parent is active */
        max-height: 300px;
        /* Sufficient height for all dropdown items */
    }

    .dropdown a {
        padding: 8px 15px;
        background-color: #003060;
        /* Slightly different background for dropdown items */
        margin: 2px 20px;
        border-radius: 5px;
        /* Hover effect for mobile dropdown items */
        transition: background-color 0.3s ease;
    }

    .dropdown a:hover {
        background-color: #004080;
        /* Darker on hover */
    }

    .hamburger {
        display: flex;
        /* Show hamburger on mobile */
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


.hero {
    background: linear-gradient(145deg, var(--primary), var(--dark));
    color: var(--light);
    padding: 140px 40px 100px;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    max-width: 650px;
    margin: auto;
}

.services,
.reviews,
.software-directory {
    padding: 80px 40px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s;
    background-color: lightblue;
    color: black;
    padding: 20px;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card p {
    line-height: 1.6;
}

.review-card {
    background: var(--light);
    padding: 25px;
    border-left: 5px solid var(--primary);
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.review-card p {
    font-size: 16px;
}

.software-directory ul {
    list-style: disc;
    padding-left: 20px;
}

.software-directory li {
    margin-bottom: 10px;
}

footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 40px 20px;
    border-top: 4px solid var(--primary);
}

.and-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px;
}

.and-card {
    perspective: 1000px;
    cursor: pointer;
}

.and-card-inner {
    position: relative;
    width: 100%;
    height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.and-card.flip .and-card-inner {
    transform: rotateY(180deg) scale(1.1);
    z-index: 10;
}

.and-card-front,
.and-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.and-card-front h3,
.and-card-back h3 {
    margin-bottom: 10px;
    color: #004080;
}

.and-card-front {
    background-color: #ffffff;
}

.and-card-back {
    background-color: #e6f0ff;
    transform: rotateY(180deg);
}

.and-card.flip {
    outline: 3px solid #004080;
    border-radius: 16px;
}

ul.and-feature-list li:hover {
    background-color: #f0f8ff;
    border-radius: 6px;
    padding-left: 8px;
    transition: 0.3s;
}