<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Website Header with Three-Level Navigation</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            background-color: #fff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            padding: 0 30px;
            height: 80px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-icon {
            font-size: 32px;
            color: #4361ee;
        }
        
        .logo-text {
            font-size: 24px;
            font-weight: 700;
            color: #2b2d42;
            letter-spacing: -0.5px;
        }
        
        .nav {
            display: flex;
            align-items: center;
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
            position: relative;
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            padding: 12px 18px;
            text-decoration: none;
            color: #2b2d42;
            font-weight: 500;
            transition: all 0.3s ease;
            border-radius: 6px;
            position: relative;
        }
        
        .nav-link:hover {
            background-color: #f0f5ff;
            color: #4361ee;
        }
        
        .nav-link i {
            margin-left: 6px;
            font-size: 12px;
            transition: transform 0.3s ease;
        }
        
        .nav-item:hover .nav-link i {
            transform: rotate(180deg);
        }
        
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            width: 220px;
            background-color: #fff;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: all 0.3s ease;
            z-index: 100;
            padding: 8px 0;
        }
        
        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(5px);
        }
        
        .dropdown-item {
            position: relative;
        }
        
        .dropdown-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 18px;
            text-decoration: none;
            color: #2b2d42;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
        }
        
        .dropdown-link:hover {
            background-color: #f5f9ff;
            color: #4361ee;
            padding-left: 22px;
        }
        
        .dropdown-link i {
            font-size: 10px;
            color: #8d99ae;
        }
        
        .submenu {
            position: absolute;
            top: -8px;
            left: 100%;
            width: 220px;
            background-color: #fff;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(15px);
            transition: all 0.3s ease;
            padding: 8px 0;
        }
        
        .dropdown-item:hover .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(5px);
        }
        
        .submenu-link {
            display: block;
            padding: 12px 18px;
            text-decoration: none;
            color: #2b2d42;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
        }
        
        .submenu-link:hover {
            background-color: #f5f9ff;
            color: #4361ee;
            padding-left: 22px;
        }
        
        .content {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        h1 {
            color: #2b2d42;
            margin-bottom: 20px;
            text-align: center;
            font-size: 32px;
        }
        
        p {
            line-height: 1.6;
            margin-bottom: 20px;
            color: #4a5568;
        }
        
        .features {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 30px;
        }
        
        .feature {
            flex: 1;
            min-width: 200px;
            padding: 20px;
            background: #f8f9ff;
            border-radius: 8px;
            border-left: 4px solid #4361ee;
        }
        
        .feature h3 {
            color: #2b2d42;
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .feature p {
            font-size: 14px;
            color: #5a677c;
        }
        
        @media (max-width: 992px) {
            header {
                flex-direction: column;
                height: auto;
                padding: 20px;
            }
            
            .logo {
                margin-bottom: 20px;
            }
            
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        
        @media (max-width: 768px) {
            .nav-menu {
                flex-direction: column;
                width: 100%;
            }
            
            .nav-item {
                width: 100%;
            }
            
            .dropdown {
                position: static;
                width: 100%;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                display: none;
            }
            
            .nav-item:hover .dropdown {
                display: block;
            }
            
            .submenu {
                position: static;
                width: 100%;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                display: none;
            }
            
            .dropdown-item:hover .submenu {
                display: block;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <div class="logo">
                <i class="fas fa-rocket logo-icon"></i>
                <span class="logo-text">TechSolutions</span>
            </div>
            
            <nav class="nav">
                <ul class="nav-menu">
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            Home
                        </a>
                    </li>
                    
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            Products <i class="fas fa-chevron-down"></i>
                        </a>
                        <div class="dropdown">
                            <div class="dropdown-item">
                                <a href="#" class="dropdown-link">
                                    Web Solutions <i class="fas fa-chevron-right"></i>
                                </a>
                                <div class="submenu">
                                    <a href="#" class="submenu-link">Corporate Websites</a>
                                    <a href="#" class="submenu-link">E-commerce Platforms</a>
                                    <a href="#" class="submenu-link">Web Applications</a>
                                    <a href="#" class="submenu-link">CMS Development</a>
                                </div>
                            </div>
                            <div class="dropdown-item">
                                <a href="#" class="dropdown-link">
                                    Mobile Apps <i class="fas fa-chevron-right"></i>
                                </a>
                                <div class="submenu">
                                    <a href="#" class="submenu-link">iOS Applications</a>
                                    <a href="#" class="submenu-link">Android Applications</a>
                                    <a href="#" class="submenu-link">Cross-Platform Apps</a>
                                </div>
                            </div>
                            <div class="dropdown-item">
                                <a href="#" class="dropdown-link">
                                    Software <i class="fas fa-chevron-right"></i>
                                </a>
                                <div class="submenu">
                                    <a href="#" class="submenu-link">Desktop Applications</a>
                                    <a href="#" class="submenu-link">Enterprise Software</a>
                                </div>
                            </div>
                            <div class="dropdown-item">
                                <a href="#" class="dropdown-link">
                                    Cloud Services
                                </a>
                            </div>
                        </div>
                    </li>
                    
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            Services <i class="fas fa-chevron-down"></i>
                        </a>
                        <div class="dropdown">
                            <div class="dropdown-item">
                                <a href="#" class="dropdown-link">
                                    Design <i class="fas fa-chevron-right"></i>
                                </a>
                                <div class="submenu">
                                    <a href="#" class="submenu-link">UI/UX Design</a>
                                    <a href="#" class="submenu-link">Brand Identity</a>
                                    <a href="#" class="submenu-link">Graphic Design</a>
                                </div>
                            </div>
                            <div class="dropdown-item">
                                <a href="#" class="dropdown-link">
                                    Development <i class="fas fa-chevron-right"></i>
                                </a>
                                <div class="submenu">
                                    <a href="#" class="submenu-link">Frontend Development</a>
                                    <a href="#" class="submenu-link">Backend Development</a>
                                    <a href="#" class="submenu-link">Full Stack Development</a>
                                </div>
                            </div>
                            <div class="dropdown-item">
                                <a href="#" class="dropdown-link">
                                    Consulting <i class="fas fa-chevron-right"></i>
                                </a>
                                <div class="submenu">
                                    <a href="#" class="submenu-link">IT Strategy</a>
                                    <a href="#" class="submenu-link">Digital Transformation</a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            About Us
                        </a>
                    </li>
                    
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            Contact
                        </a>
                    </li>
                </ul>
            </nav>
        </header>
        
        <div class="content">
            <h1>Three-Level Navigation Header</h1>
            <p>This is a demonstration of a website header with a three-level navigation menu. Hover over the "Products" or "Services" menu items to see the dropdown menus in action.</p>
            
            <div class="features">
                <div class="feature">
                    <h3>Responsive Design</h3>
                    <p>Adapts to different screen sizes, providing optimal viewing experience on all devices.</p>
                </div>
                <div class="feature">
                    <h3>Smooth Animations</h3>
                    <p>Elegant hover effects and transitions that enhance user experience.</p>
                </div>
                <div class="feature">
                    <h3>Clean Code</h3>
                    <p>Well-structured HTML and CSS that's easy to customize and extend.</p>
                </div>
            </div>
            
            <p>The navigation includes three levels: main menu items, dropdown menus, and submenus. All transitions are implemented using CSS only, without JavaScript.</p>
        </div>
    </div>
</body>
</html>