* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    justify-content: center;
    align-items: center;
}

.card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card:hover .icon {
    transform: scale(1.1);
    color: #4dabf7;
}

.card:hover p {
    color: #4dabf7;
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
    transition: all 0.3s ease;
}

p {
    color: #f8f9fa;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
}

@media screen and (min-width: 1400px) {
    main {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    main {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2em;
    }
    
    .card {
        height: 180px;
    }
    
    .icon {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 15px;
        align-items: flex-start;
        min-height: 100vh;
        height: auto;
    }
    
    .container {
        padding: 15px;
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    main {
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        width: 100%;
        height: 160px;
        padding: 15px;
    }
    
    .icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    main {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8em;
    }
    
    .card {
        height: 140px;
        padding: 12px;
    }
    
    .icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media screen and (max-width: 360px) {
    main {
        grid-template-columns: 1fr;
    }
    
    .card {
        height: 130px;
    }
    
    .icon {
        font-size: 2rem;
    }
    
    p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    main {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card {
        height: 150px;
    }
}
