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

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Section headings use Space Mono */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-weight: 400;
    letter-spacing: -0.02em;
}

header {
    background: transparent;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    background: transparent;
    border: none;
    box-shadow: none;
}

ul {
    list-style: none;
    display: flex;
}

li {
    margin-left: 1rem;
    position: relative;
}

/* Enhanced dropdown arrow */
.dropdown::after {
    content: "▾";
    font-size: 0.7rem;
    margin-left: 6px;
    color: #6b7280;
    transition: all 0.3s ease;
    font-weight: bold;
}

.dropdown:hover::after {
    color: #2563eb;
    transform: translateY(2px) rotate(180deg);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    min-width: 180px;
    max-width: 220px;
    width: max-content;
    border-radius: 12px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    /* Ensure dropdown doesn't overflow viewport */
    max-height: 80vh;
    overflow-y: auto;
    white-space: normal;
    /* Smooth entrance animation */
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive dropdown positioning */
@media (max-width: 768px) {
    .submenu {
        left: auto;
        right: 0;
        min-width: 140px;
        max-width: 180px;
    }
}

/* Ensure dropdown stays within viewport on small screens */
@media (max-width: 480px) {
    .submenu {
        position: fixed;
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: 10px !important;
        max-height: 60vh;
        width: auto;
        min-width: 0;
    }
}

.dropdown:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Modern submenu item styling */
.submenu li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    padding: 14px 18px;
    display: block;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Modern hover effects */
.submenu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.4s ease;
}

.submenu li a:hover::before {
    left: 100%;
}

.submenu li a:hover {
    color: #2563eb;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
    transform: translateX(4px);
}

/* Smooth hover transitions */
.dropdown:hover::after {
    color: #007bff;
    transform: rotate(180deg);
    transition: all 0.2s ease;
}

.submenu li:hover {
    background-color: #e9ecef;
}

.submenu li a:hover {
    color: #007bff;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 12px 16px;
    display: block;
}

a {
    text-decoration: none;
    color: #333;
}

.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="%23ffffff" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border-radius: 5px;
}

.features .feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.features .feature img {
    transition: transform 0.3s ease;
}

.features .feature:hover img {
    transform: scale(1.05);
}
    justify-content: space-around;
}

.features {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.feature {
    flex: 1 1 300px;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.feature h2 {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #f4f4f4;
}

footer ul {
    justify-content: center;
}