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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-squares {
    display: flex;
    gap: 4px;
}

.logo-squares.small {
    gap: 2px;
}

.logo-squares.mini {
    gap: 1px;
}

.square {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 3px solid;
    border-radius: 4px;
    transform: rotate(15deg);
}

.square.turquoise {
    border-color: #00FFFA;
}

.square.yellow {
    border-color: #F3C961;
}

.logo-squares.small .square {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.logo-squares.mini .square {
    width: 12px;
    height: 12px;
    border-width: 2px;
    border-radius: 2px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.logo-text-mini {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.apps-text {
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

/* Home Icon */
.home-icon::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    border: 2px solid #00FFFA;
    border-top: none;
    top: 8px;
    left: 2px;
}

.home-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 8px solid #00FFFA;
    top: 0;
    left: 0;
}

/* Login Icon */
.login-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #F3C961;
    border-radius: 50%;
    top: 2px;
    left: 6px;
}

.login-icon::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 8px;
    border: 2px solid #F3C961;
    border-top: none;
    border-radius: 0 0 7px 7px;
    top: 10px;
    left: 3px;
}

/* Register Icon */
.register-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #16a34a;
    border-radius: 50%;
    top: 2px;
    left: 6px;
}

.register-icon::after {
    content: '+';
    position: absolute;
    color: #16a34a;
    font-size: 12px;
    font-weight: bold;
    top: 10px;
    left: 14px;
}

/* Tools Icon */
.tools-icon::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 16px;
    background: #2563eb;
    top: 2px;
    left: 9px;
    transform: rotate(45deg);
}

.tools-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 16px;
    background: #2563eb;
    top: 2px;
    left: 9px;
    transform: rotate(-45deg);
}

/* Link Icon */
.link-icon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid #8b5cf6;
    border-radius: 2px;
    top: 2px;
    left: 2px;
    transform: rotate(-45deg);
}

.link-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid #8b5cf6;
    border-radius: 2px;
    top: 10px;
    left: 10px;
    transform: rotate(-45deg);
}

.developer-info {
    display: flex;
    align-items: center;
}

.developer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.developer-text {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-squares {
    display: flex;
    gap: 8px;
}

.square-large {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 6px solid;
    border-radius: 12px;
    transform: rotate(15deg);
    animation: float 3s ease-in-out infinite;
}

.square-large.turquoise {
    border-color: #00FFFA;
    animation-delay: 0s;
}

.square-large.yellow {
    border-color: #F3C961;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: rotate(15deg) translateY(0px); }
    50% { transform: rotate(15deg) translateY(-10px); }
}

.hero-letters {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 120px;
}

.letter-m {
    font-size: 120px;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.letter-h {
    font-size: 120px;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(-15deg);
    margin: 0 10px;
}

.letter-m-bottom {
    font-size: 60px;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: -10px;
    right: -20px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Apps Section */
.apps-section {
    padding: 40px 0 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    width: 250px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.app-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.app-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.app-icon {
    height: 120px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--app-color, #2563eb), var(--app-color-dark, #1d4ed8));
    border-radius: 16px 16px 0 0;
    margin: 0 auto;
}

.icon-emoji {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.app-logo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.app-info {
    padding: 20px;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.app-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav-link {
        width: 36px;
        height: 36px;
    }
    
    .hero-letters {
        height: 80px;
    }
    
    .letter-m {
        font-size: 80px;
    }
    
    .letter-h {
        font-size: 80px;
    }
    
    .letter-m-bottom {
        font-size: 40px;
        bottom: -5px;
        right: -15px;
    }
    
    .square-large {
        width: 60px;
        height: 60px;
        border-width: 4px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-letters {
        height: 60px;
    }
    
    .letter-m {
        font-size: 60px;
    }
    
    .letter-h {
        font-size: 60px;
    }
    
    .letter-m-bottom {
        font-size: 30px;
        bottom: -3px;
        right: -10px;
    }
    
    .square-large {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .hero-logo {
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}
